1{ 2 buildPythonPackage, 3 cirq-core, 4 freezegun, 5 google-api-core, 6 protobuf, 7 pytestCheckHook, 8 pythonRelaxDepsHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "cirq-google"; 14 pyproject = true; 15 inherit (cirq-core) version src meta; 16 17 sourceRoot = "${src.name}/${pname}"; 18 19 nativeBuildInputs = [ 20 pythonRelaxDepsHook 21 setuptools 22 ]; 23 24 propagatedBuildInputs = [ 25 cirq-core 26 google-api-core 27 protobuf 28 ] ++ google-api-core.optional-dependencies.grpc; 29 30 nativeCheckInputs = [ 31 freezegun 32 pytestCheckHook 33 ]; 34 35 disabledTestPaths = [ 36 # No need to test the version number 37 "cirq_google/_version_test.py" 38 # Trace/BPT trap: 5 39 "cirq_google/engine/calibration_test.py" 40 # Very time-consuming 41 "cirq_google/engine/*_test.py" 42 ]; 43 44 disabledTests = [ 45 # unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient' 46 "test_get_engine_sampler_explicit_project_id" 47 "test_get_engine_sampler" 48 # Calibration issue 49 "test_xeb_to_calibration_layer" 50 ]; 51}