python310Packages.stim: relax pybind11 and add build dependencies

This commit is contained in:
Theodore Ni 2023-08-24 14:34:38 -07:00 committed by Yt
parent 8bfaf53f7b
commit fbed17d90f

View File

@ -11,6 +11,8 @@
, matplotlib
, networkx
, scipy
, setuptools
, wheel
, pandas
}:
@ -28,9 +30,20 @@ buildPythonPackage rec {
hash = "sha256-zXWdJjFkf74FCWxyVMF8dx0P8GmUkuHFxUo5wYNU2o0=";
};
postPatch = ''
# asked to relax this in https://github.com/quantumlib/Stim/issues/623
substituteInPlace pyproject.toml \
--replace "pybind11==" "pybind11>="
'';
nativeBuildInputs = [
pybind11
setuptools
wheel
];
propagatedBuildInputs = [
numpy
pybind11
];
nativeCheckInputs = [