Skip to content

Commit cb9613d

Browse files
authored
python312Packages.tskit: relax numpy build-time constraint, unbreak (#354512)
2 parents bc1a933 + b8e6200 commit cb9613d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

pkgs/development/python-modules/msprime/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ buildPythonPackage rec {
2828
hash = "sha256-2K55gHYWf2Mrj9fszVCJ+qqEyQNMppQi+IZCX5SlsBs=";
2929
};
3030

31+
postPatch = ''
32+
# build-time constriant, used to ensure forward and backward compat
33+
substituteInPlace pyproject.toml \
34+
--replace-fail "numpy>=2" "numpy"
35+
'';
36+
3137
nativeBuildInputs = [
3238
gsl
3339
oldest-supported-numpy

pkgs/development/python-modules/tskit/default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ buildPythonPackage rec {
2121
hash = "sha256-Wq7ar96w5hdAyKMMvK4zjYln74RmX1l/VhvS++CN+Xk=";
2222
};
2323

24+
postPatch = ''
25+
# build-time constriant, used to ensure forward and backward compat
26+
substituteInPlace pyproject.toml \
27+
--replace-fail "numpy>=2.0" "numpy"
28+
'';
29+
2430
build-system = [ setuptools ];
2531

2632
dependencies = [

0 commit comments

Comments
 (0)