python310Packages.cirq-*: disable version test

This commit is contained in:
Fabian Affolter 2022-10-16 17:19:35 +02:00
parent a51c8f91da
commit 651e154b43
7 changed files with 34 additions and 3 deletions

View file

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_aqt" ];
disabledTestPaths = [
# No need to test the version number
"cirq_aqt/_version_test.py"
];
}

View file

@ -87,7 +87,7 @@ buildPythonPackage rec {
];
disabledTests = [
# tries to import flynt, which isn't in Nixpkgs
# Tries to import flynt, which isn't in Nixpkgs
"test_metadata_search_path"
# Fails due pandas MultiIndex. Maybe issue with pandas version in nix?
"test_benchmark_2q_xeb_fidelities"

View file

@ -2,7 +2,6 @@
, cirq-core
, google-api-core
, protobuf
# test inputs
, pytestCheckHook
, freezegun
}:
@ -15,7 +14,8 @@ buildPythonPackage rec {
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 "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"
'';
propagatedBuildInputs = [
@ -29,9 +29,15 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTestPaths = [
# No need to test the version number
"cirq_google/_version_test.py"
];
disabledTests = [
# unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient'
"test_get_engine_sampler_explicit_project_id"
"test_get_engine_sampler"
];
}

View file

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_ionq" ];
disabledTestPaths = [
# No need to test the version number
"cirq_ionq/_version_test.py"
];
}

View file

@ -26,4 +26,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_pasqal" ];
disabledTestPaths = [
# No need to test the version number
"cirq_pasqal/_version_test.py"
];
}

View file

@ -75,6 +75,11 @@ buildPythonPackage rec {
pytestCheckHook
];
disabledTestPaths = [
# No need to test the version number
"cirq_rigetti/_version_test.py"
];
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_rigetti" ];
}

View file

@ -19,4 +19,9 @@ buildPythonPackage rec {
# cirq's importlib hook doesn't work here
#pythonImportsCheck = [ "cirq_web" ];
disabledTestPaths = [
# No need to test the version number
"cirq_web/_version_test.py"
];
}