python312Packages.scikit-survival: 0.23.1 -> 0.24.1

This commit is contained in:
R. Ryantm
2025-03-26 15:03:38 +01:00
committed by Weijia Wang
parent e367ce7189
commit 6356ce51f2
@@ -19,14 +19,14 @@
buildPythonPackage rec {
pname = "scikit-survival";
version = "0.23.1";
version = "0.24.1";
pyproject = true;
src = fetchFromGitHub {
owner = "sebp";
repo = "scikit-survival";
tag = "v${version}";
hash = "sha256-6902chXALa73/kTJ5UwV4CrB7/7wn+QXKpp2ej/Dnk8=";
hash = "sha256-El5q2eE6wJKg/8rcFZPZQl7MVxw1jMsggjiCJHj7il8=";
};
nativeBuildInputs = [
@@ -49,12 +49,9 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
# can remove scikit-learn after 0.23.1
postPatch = ''
ln -s ${lib.getInclude eigen}/include/eigen3/Eigen \
sksurv/linear_model/src/eigen
sed -i -e 's/numpy>=2.0.0/numpy/' \
-e 's/scikit-learn~=1.4.0/scikit-learn/' pyproject.toml
'';
# Hack needed to make pytest + cython work