18 buildPythonPackage rec {
19 pname = "scikit-survival";
24 inherit pname version;
25 hash = "sha256-Ft0Hg5iF9Sb9VSOsFMgfAvc4Nsam216kzt5Xv2iykv8=";
33 propagatedBuildInputs = [
44 pythonImportsCheck = [ "sksurv" ];
46 nativeCheckInputs = [ pytestCheckHook ];
48 # treat numpy versions as lower bounds, same as setuptools build
50 sed -i 's/numpy==/numpy>=/' pyproject.toml
53 # Hack needed to make pytest + cython work
54 # https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
56 export HOME=$(mktemp -d)
57 cp -r $TMP/$sourceRoot/tests $HOME
62 # very long tests, unnecessary for a leaf package
66 "test_ensemble_selection"
71 ] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64)
72 # floating point mismatch on aarch64
73 # 27079905.88052468 to far from 27079905.880496684
78 description = "Survival analysis built on top of scikit-learn";
79 homepage = "https://github.com/sebp/scikit-survival";
80 license = licenses.gpl3Only;
81 maintainers = with maintainers; [ GuillaumeDesforges ];