1{ 2 buildPythonPackage, 3 setuptools, 4 cirq-core, 5 google-api-core, 6 protobuf, 7 freezegun, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "cirq-google"; 13 pyproject = true; 14 inherit (cirq-core) version src meta; 15 16 sourceRoot = "${src.name}/${pname}"; 17 18 build-system = [ setuptools ]; 19 20 pythonRelaxDeps = [ 21 "protobuf" 22 ]; 23 24 dependencies = [ 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}