diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/stim/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/stim/default.nix | 58 |
1 files changed, 27 insertions, 31 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/stim/default.nix b/nixpkgs/pkgs/development/python-modules/stim/default.nix index 734a3b3c9ff1..0e779f3850a4 100644 --- a/nixpkgs/pkgs/development/python-modules/stim/default.nix +++ b/nixpkgs/pkgs/development/python-modules/stim/default.nix @@ -1,33 +1,32 @@ { lib -, pkgs , buildPythonPackage -, pythonOlder -, pytestCheckHook -, pytest-xdist -, fetchFromGitHub -, numpy -, pybind11 , cirq-core +, fetchFromGitHub , matplotlib , networkx +, numpy +, pandas +, pybind11 +, pytest-xdist +, pytestCheckHook +, pythonOlder , scipy , setuptools , wheel -, pandas }: buildPythonPackage rec { pname = "stim"; - version = "1.9.0"; - format = "pyproject"; + version = "1.12.1"; + pyproject = true; disabled = pythonOlder "3.6"; - src = pkgs.fetchFromGitHub { + src = fetchFromGitHub { owner = "quantumlib"; repo = "Stim"; rev = "refs/tags/v${version}"; - hash = "sha256-zXWdJjFkf74FCWxyVMF8dx0P8GmUkuHFxUo5wYNU2o0="; + hash = "sha256-vDpW8cn1JPARDIXpLyK9uenhHmva0FwnWIDV7dSHbIY="; }; postPatch = '' @@ -47,34 +46,31 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - pytestCheckHook - pytest-xdist - cirq-core matplotlib networkx - scipy pandas + pytest-xdist + pytestCheckHook + scipy ]; - meta = { - description = "A tool for high performance simulation and analysis of quantum stabilizer circuits, especially quantum error correction (QEC) circuits."; - license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ chrispattison ]; - homepage = "https://github.com/quantumlib/stim"; - }; - - pythonImportsCheck = [ "stim" ]; + pythonImportsCheck = [ + "stim" + ]; enableParallelBuilding = true; disabledTestPaths = [ - # No pymatching - "glue/sample/src/sinter/main_test.py" - "glue/sample/src/sinter/decoding_test.py" - "glue/sample/src/sinter/predict_test.py" - "glue/sample/src/sinter/collection_test.py" - "glue/sample/src/sinter/collection_work_manager.py" - "glue/sample/src/sinter/worker_test.py" + # Don't test sample + "glue/sample/" ]; + + meta = with lib; { + description = "A tool for high performance simulation and analysis of quantum stabilizer circuits, especially quantum error correction (QEC) circuits"; + homepage = "https://github.com/quantumlib/stim"; + changelog = "https://github.com/quantumlib/Stim/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ chrispattison ]; + }; } |