mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.cirq-*: 1.6.1 -> 1.7.0
https://github.com/quantumlib/Cirq/releases/tag/v1.7.0
This commit is contained in:
parent
1dca7c9e94
commit
d1fce43f43
6 changed files with 26 additions and 18 deletions
|
|
@ -2,6 +2,7 @@
|
|||
buildPythonPackage,
|
||||
cirq-core,
|
||||
requests,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
|
@ -24,7 +25,10 @@ buildPythonPackage rec {
|
|||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# cirq's importlib hook doesn't work here
|
||||
#pythonImportsCheck = [ "cirq_aqt" ];
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
|
@ -31,6 +30,7 @@
|
|||
# tests
|
||||
freezegun,
|
||||
pytest-asyncio,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
|
||||
withContribRequires ? false,
|
||||
|
|
@ -38,29 +38,18 @@
|
|||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-core";
|
||||
version = "1.6.1";
|
||||
version = "1.7.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "quantumlib";
|
||||
repo = "cirq";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-M+ojGXJOnrBipjSA9hd3++yTS70kCjPru9FG/rm7zI8=";
|
||||
hash = "sha256-OAyBYzMEFyVMlxN5UjrKk1x2rSayLyAIAC5h96JeqK0=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
patches = [
|
||||
# Upstream PR: https://github.com/quantumlib/Cirq/pull/7761
|
||||
(fetchpatch {
|
||||
name = "python-3.14.patch";
|
||||
url = "https://github.com/quantumlib/Cirq/commit/9aea3bad824cac77031c163d6d6f5cf3e01cfe80.patch";
|
||||
stripLen = 1;
|
||||
includes = [ "cirq/ops/linear_combinations_test.py" ];
|
||||
hash = "sha256-Ggcaswrdx6mOfNOwlbWE2ix7aZWt3/Fljb4i1ow+lUU=";
|
||||
})
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [ "matplotlib" ];
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
|
@ -91,6 +80,7 @@ buildPythonPackage rec {
|
|||
nativeCheckInputs = [
|
||||
freezegun
|
||||
pytest-asyncio
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
google-api-core,
|
||||
protobuf,
|
||||
freezegun,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
typedunits,
|
||||
}:
|
||||
|
|
@ -32,6 +33,7 @@ buildPythonPackage rec {
|
|||
|
||||
nativeCheckInputs = [
|
||||
freezegun
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
buildPythonPackage,
|
||||
cirq-core,
|
||||
requests,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
|
@ -24,7 +25,10 @@ buildPythonPackage rec {
|
|||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# cirq's importlib hook doesn't work here
|
||||
#pythonImportsCheck = [ "cirq_ionq" ];
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
buildPythonPackage,
|
||||
cirq-core,
|
||||
requests,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
|
@ -24,7 +25,10 @@ buildPythonPackage rec {
|
|||
requests
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# cirq's importlib hook doesn't work here
|
||||
#pythonImportsCheck = [ "cirq_pasqal" ];
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
buildPythonPackage,
|
||||
cirq-core,
|
||||
pytest-benchmark,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
}:
|
||||
|
|
@ -16,7 +17,10 @@ buildPythonPackage rec {
|
|||
|
||||
dependencies = [ cirq-core ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
nativeCheckInputs = [
|
||||
pytest-benchmark
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# cirq's importlib hook doesn't work here
|
||||
#pythonImportsCheck = [ "cirq_web" ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue