From fbed17d90fbd0166eb6e2f9c4268bab5d744ff23 Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 24 Aug 2023 14:34:38 -0700 Subject: [PATCH] python310Packages.stim: relax pybind11 and add build dependencies --- pkgs/development/python-modules/stim/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/stim/default.nix b/pkgs/development/python-modules/stim/default.nix index 381676047c1a..734a3b3c9ff1 100644 --- a/pkgs/development/python-modules/stim/default.nix +++ b/pkgs/development/python-modules/stim/default.nix @@ -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 = [