Merge pull request #272237 from fabaff/stim-fix

python311Packages.stim: 1.9.0 -> 1.12.1
This commit is contained in:
Fabian Affolter 2023-12-05 16:31:40 +01:00 committed by GitHub
commit b7c67e49a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}