lol

python311Packages.scikit-survival: 0.21.0 -> 0.22.1; fix build

disable test_coxnet on darwin aarch64 due to 2e-05 floating point mismatch

Rob 20e41e0a 51438bb4

+13 -5
+13 -5
pkgs/development/python-modules/scikit-survival/default.nix
··· 17 17 18 18 buildPythonPackage rec { 19 19 pname = "scikit-survival"; 20 - version = "0.21.0"; 21 - format = "setuptools"; 20 + version = "0.22.1"; 21 + pyproject = true; 22 22 23 23 src = fetchPypi { 24 24 inherit pname version; 25 - hash = "sha256-rcdEtlmD3O2BQuwxRlOJ/HOEBdWJBRJR5UR6rZoeArw="; 25 + hash = "sha256-Ft0Hg5iF9Sb9VSOsFMgfAvc4Nsam216kzt5Xv2iykv8="; 26 26 }; 27 27 28 28 nativeBuildInputs = [ ··· 45 45 46 46 nativeCheckInputs = [ pytestCheckHook ]; 47 47 48 + # treat numpy versions as lower bounds, same as setuptools build 49 + postPatch = '' 50 + sed -i 's/numpy==/numpy>=/' pyproject.toml 51 + ''; 52 + 48 53 # Hack needed to make pytest + cython work 49 54 # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298 50 55 preCheck = '' ··· 63 68 "test_pandas_inputs" 64 69 "test_survival_svm" 65 70 "test_tree" 66 - ]; 71 + ] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64) 72 + # floating point mismatch on aarch64 73 + # 27079905.88052468 to far from 27079905.880496684 74 + "test_coxnet" 75 + ; 67 76 68 77 meta = with lib; { 69 - broken = (stdenv.isLinux && stdenv.isAarch64); 70 78 description = "Survival analysis built on top of scikit-learn"; 71 79 homepage = "https://github.com/sebp/scikit-survival"; 72 80 license = licenses.gpl3Only;