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