Merge pull request #266019 from robert-manchester/scikit-survival-fix
python311Packages.scikit-survival: 0.21.0 -> 0.22.1; fix build
This commit is contained in:
commit
2732e7de60
1 changed files with 13 additions and 5 deletions
|
@ -17,12 +17,12 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "scikit-survival";
|
pname = "scikit-survival";
|
||||||
version = "0.21.0";
|
version = "0.22.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-rcdEtlmD3O2BQuwxRlOJ/HOEBdWJBRJR5UR6rZoeArw=";
|
hash = "sha256-Ft0Hg5iF9Sb9VSOsFMgfAvc4Nsam216kzt5Xv2iykv8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -45,6 +45,11 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
# treat numpy versions as lower bounds, same as setuptools build
|
||||||
|
postPatch = ''
|
||||||
|
sed -i 's/numpy==/numpy>=/' pyproject.toml
|
||||||
|
'';
|
||||||
|
|
||||||
# Hack needed to make pytest + cython work
|
# Hack needed to make pytest + cython work
|
||||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
@ -63,10 +68,13 @@ buildPythonPackage rec {
|
||||||
"test_pandas_inputs"
|
"test_pandas_inputs"
|
||||||
"test_survival_svm"
|
"test_survival_svm"
|
||||||
"test_tree"
|
"test_tree"
|
||||||
];
|
] ++ lib.optional (stdenv.isDarwin && stdenv.isAarch64)
|
||||||
|
# floating point mismatch on aarch64
|
||||||
|
# 27079905.88052468 to far from 27079905.880496684
|
||||||
|
"test_coxnet"
|
||||||
|
;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = (stdenv.isLinux && stdenv.isAarch64);
|
|
||||||
description = "Survival analysis built on top of scikit-learn";
|
description = "Survival analysis built on top of scikit-learn";
|
||||||
homepage = "https://github.com/sebp/scikit-survival";
|
homepage = "https://github.com/sebp/scikit-survival";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
|
|
Loading…
Reference in a new issue