about summary refs log tree commit diff
path: root/pkgs/development/python-modules/stim/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/stim/default.nix')
-rw-r--r--pkgs/development/python-modules/stim/default.nix41
1 files changed, 19 insertions, 22 deletions
diff --git a/pkgs/development/python-modules/stim/default.nix b/pkgs/development/python-modules/stim/default.nix
index 3e95b74ef9ef4..bbb7904ec5dae 100644
--- a/pkgs/development/python-modules/stim/default.nix
+++ b/pkgs/development/python-modules/stim/default.nix
@@ -1,18 +1,19 @@
-{ lib
-, buildPythonPackage
-, cirq-core
-, fetchFromGitHub
-, matplotlib
-, networkx
-, numpy
-, pandas
-, pybind11
-, pytest-xdist
-, pytestCheckHook
-, pythonOlder
-, scipy
-, setuptools
-, wheel
+{
+  lib,
+  buildPythonPackage,
+  cirq-core,
+  fetchFromGitHub,
+  matplotlib,
+  networkx,
+  numpy,
+  pandas,
+  pybind11,
+  pytest-xdist,
+  pytestCheckHook,
+  pythonOlder,
+  scipy,
+  setuptools,
+  wheel,
 }:
 
 buildPythonPackage rec {
@@ -32,7 +33,7 @@ buildPythonPackage rec {
   postPatch = ''
     # asked to relax this in https://github.com/quantumlib/Stim/issues/623
     substituteInPlace pyproject.toml \
-      --replace "pybind11==" "pybind11>="
+      --replace-quiet "pybind11~=" "pybind11>="
   '';
 
   nativeBuildInputs = [
@@ -41,9 +42,7 @@ buildPythonPackage rec {
     wheel
   ];
 
-  propagatedBuildInputs = [
-    numpy
-  ];
+  propagatedBuildInputs = [ numpy ];
 
   nativeCheckInputs = [
     cirq-core
@@ -55,9 +54,7 @@ buildPythonPackage rec {
     scipy
   ];
 
-  pythonImportsCheck = [
-    "stim"
-  ];
+  pythonImportsCheck = [ "stim" ];
 
   enableParallelBuilding = true;