mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 20:39:04 +02:00
Merge pull request #272237 from fabaff/stim-fix
python311Packages.stim: 1.9.0 -> 1.12.1
This commit is contained in:
commit
b7c67e49a0
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue