Skip to content

Commit ae7f0ee

Browse files
authored
python311Packages.qutip: relax numpy build-time constraint, unbreak (#354592)
2 parents dde8f50 + c3afba7 commit ae7f0ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ buildPythonPackage rec {
3232
hash = "sha256-KT5Mk0w6EKTUZzGRnQ6XQPZfH5ZXVuiD+EwSflNqHNo=";
3333
};
3434

35+
postPatch = ''
36+
# build-time constriant, used to ensure forward and backward compat
37+
substituteInPlace pyproject.toml setup.cfg \
38+
--replace-fail "numpy>=2.0.0" "numpy"
39+
'';
40+
3541
nativeBuildInputs = [
3642
cython_0
3743
setuptools

0 commit comments

Comments
 (0)