python3Packages.scikit-survival: 0.24.1 -> 0.25.0 (#445334)

authored by Gaétan Lepage and committed by GitHub 5198a0f3 e4bd93f8

+37 -27
+37 -27
pkgs/development/python-modules/scikit-survival/default.nix
··· 1 { 2 - stdenv, 3 lib, 4 buildPythonPackage, 5 fetchFromGitHub, 6 cython, 7 ecos, 8 - eigen, 9 joblib, 10 numexpr, 11 - numpy, 12 osqp, 13 pandas, 14 - setuptools-scm, 15 - scikit-learn, 16 scipy, 17 pytestCheckHook, 18 }: 19 20 buildPythonPackage rec { 21 pname = "scikit-survival"; 22 - version = "0.24.1"; 23 pyproject = true; 24 25 src = fetchFromGitHub { 26 owner = "sebp"; 27 repo = "scikit-survival"; 28 tag = "v${version}"; 29 - hash = "sha256-El5q2eE6wJKg/8rcFZPZQl7MVxw1jMsggjiCJHj7il8="; 30 }; 31 32 - nativeBuildInputs = [ 33 cython 34 setuptools-scm 35 ]; 36 37 - propagatedBuildInputs = [ 38 ecos 39 joblib 40 numexpr ··· 48 pythonImportsCheck = [ "sksurv" ]; 49 50 nativeCheckInputs = [ pytestCheckHook ]; 51 - 52 - postPatch = '' 53 - ln -s ${lib.getInclude eigen}/include/eigen3/Eigen \ 54 - sksurv/linear_model/src/eigen 55 - ''; 56 57 # Hack needed to make pytest + cython work 58 # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298 59 preCheck = '' 60 - export HOME=$(mktemp -d) 61 - cp -r $TMP/$sourceRoot/tests $HOME 62 - pushd $HOME 63 ''; 64 - postCheck = "popd"; 65 66 - # very long tests, unnecessary for a leaf package 67 disabledTests = [ 68 "test_coxph" 69 "test_datasets" 70 "test_ensemble_selection" ··· 73 "test_survival_svm" 74 "test_tree" 75 ] 76 - ++ 77 - lib.optional (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) 78 - # floating point mismatch on aarch64 79 - # 27079905.88052468 to far from 27079905.880496684 80 - "test_coxnet"; 81 82 - meta = with lib; { 83 description = "Survival analysis built on top of scikit-learn"; 84 homepage = "https://github.com/sebp/scikit-survival"; 85 - license = licenses.gpl3Only; 86 - maintainers = with maintainers; [ GuillaumeDesforges ]; 87 }; 88 }
··· 1 { 2 lib, 3 + stdenv, 4 buildPythonPackage, 5 fetchFromGitHub, 6 + eigen, 7 + 8 + # build-system 9 cython, 10 + numpy, 11 + packaging, 12 + scikit-learn, 13 + setuptools, 14 + setuptools-scm, 15 + 16 + # dependencies 17 ecos, 18 joblib, 19 numexpr, 20 osqp, 21 pandas, 22 scipy, 23 + 24 + # tests 25 pytestCheckHook, 26 }: 27 28 buildPythonPackage rec { 29 pname = "scikit-survival"; 30 + version = "0.25.0"; 31 pyproject = true; 32 33 src = fetchFromGitHub { 34 owner = "sebp"; 35 repo = "scikit-survival"; 36 tag = "v${version}"; 37 + hash = "sha256-OvdmZ2vDptYB2tq7OtokIQzjKzhQBWwnXZLW0m6FqlI="; 38 }; 39 40 + postPatch = '' 41 + ln -s ${lib.getInclude eigen}/include/eigen3/Eigen \ 42 + sksurv/linear_model/src/eigen 43 + ''; 44 + 45 + build-system = [ 46 cython 47 + numpy 48 + packaging 49 + scikit-learn 50 + setuptools 51 setuptools-scm 52 ]; 53 54 + dependencies = [ 55 ecos 56 joblib 57 numexpr ··· 65 pythonImportsCheck = [ "sksurv" ]; 66 67 nativeCheckInputs = [ pytestCheckHook ]; 68 69 # Hack needed to make pytest + cython work 70 # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298 71 preCheck = '' 72 + rm -rf sksurv 73 ''; 74 75 disabledTests = [ 76 + # very long tests, unnecessary for a leaf package 77 "test_coxph" 78 "test_datasets" 79 "test_ensemble_selection" ··· 82 "test_survival_svm" 83 "test_tree" 84 ] 85 + ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ 86 + # floating point mismatch on aarch64 87 + # 27079905.88052468 to far from 27079905.880496684 88 + "test_coxnet" 89 + ]; 90 91 + meta = { 92 description = "Survival analysis built on top of scikit-learn"; 93 homepage = "https://github.com/sebp/scikit-survival"; 94 + changelog = "https://github.com/sebp/scikit-survival/releases/tag/v${version}"; 95 + license = lib.licenses.gpl3Plus; 96 + maintainers = with lib.maintainers; [ GuillaumeDesforges ]; 97 }; 98 }