python3Packages.cirq-*: 1.6.1 -> 1.7.0

https://github.com/quantumlib/Cirq/releases/tag/v1.7.0
This commit is contained in:
Martin Weinelt 2026-07-04 15:16:50 +02:00
commit d1fce43f43
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
6 changed files with 26 additions and 18 deletions

View file

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

View file

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

View file

@ -5,6 +5,7 @@
google-api-core,
protobuf,
freezegun,
pytest-benchmark,
pytestCheckHook,
typedunits,
}:
@ -32,6 +33,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
freezegun
pytest-benchmark
pytestCheckHook
];

View file

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

View file

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

View file

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