Unverified Commit 85547aa0 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.scikit-survival: 0.23.1 -> 0.24.1 (#387138)

parents 504ee55f 6356ce51
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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