python311Packages.qutip: relax numpy build-time constraint, unbreak (#354592)

This commit is contained in:
Weijia Wang
2024-11-10 01:54:04 +01:00
committed by GitHub

View File

@@ -32,6 +32,12 @@ buildPythonPackage rec {
hash = "sha256-KT5Mk0w6EKTUZzGRnQ6XQPZfH5ZXVuiD+EwSflNqHNo=";
};
postPatch = ''
# build-time constriant, used to ensure forward and backward compat
substituteInPlace pyproject.toml setup.cfg \
--replace-fail "numpy>=2.0.0" "numpy"
'';
nativeBuildInputs = [
cython_0
setuptools