python311Packages.cirq-google: disable time-consuming tests
This commit is contained in:
@@ -1,27 +1,23 @@
|
||||
{ buildPythonPackage
|
||||
, cirq-core
|
||||
, freezegun
|
||||
, google-api-core
|
||||
, protobuf
|
||||
, pytestCheckHook
|
||||
, freezegun
|
||||
, pythonRelaxDepsHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cirq-google";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
inherit (cirq-core) version src meta;
|
||||
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev" \
|
||||
--replace "protobuf >= 3.15.0, < 4" "protobuf >= 3.15.0"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
@@ -40,6 +36,8 @@ buildPythonPackage rec {
|
||||
"cirq_google/_version_test.py"
|
||||
# Trace/BPT trap: 5
|
||||
"cirq_google/engine/calibration_test.py"
|
||||
# Very time-consuming
|
||||
"cirq_google/engine/*_test.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
|
||||
Reference in New Issue
Block a user