python312Packages.tskit: relax numpy build-time constraint, unbreak (#354512)

This commit is contained in:
Weijia Wang 2024-11-11 00:47:34 +01:00 committed by GitHub
commit cb9613de4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

View File

@ -28,6 +28,12 @@ buildPythonPackage rec {
hash = "sha256-2K55gHYWf2Mrj9fszVCJ+qqEyQNMppQi+IZCX5SlsBs=";
};
postPatch = ''
# build-time constriant, used to ensure forward and backward compat
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2" "numpy"
'';
nativeBuildInputs = [
gsl
oldest-supported-numpy

View File

@ -21,6 +21,12 @@ buildPythonPackage rec {
hash = "sha256-Wq7ar96w5hdAyKMMvK4zjYln74RmX1l/VhvS++CN+Xk=";
};
postPatch = ''
# build-time constriant, used to ensure forward and backward compat
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0" "numpy"
'';
build-system = [ setuptools ];
dependencies = [