1{ 2 buildPythonPackage, 3 setuptools, 4 cirq-core, 5 google-api-core, 6 protobuf, 7 freezegun, 8 pytestCheckHook, 9 typedunits, 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 build-system = [ setuptools ]; 20 21 pythonRelaxDeps = [ 22 "protobuf" 23 ]; 24 25 dependencies = [ 26 cirq-core 27 google-api-core 28 protobuf 29 typedunits 30 ] 31 ++ google-api-core.optional-dependencies.grpc; 32 33 nativeCheckInputs = [ 34 freezegun 35 pytestCheckHook 36 ]; 37 38 disabledTestPaths = [ 39 # No need to test the version number 40 "cirq_google/_version_test.py" 41 # Trace/BPT trap: 5 42 "cirq_google/engine/calibration_test.py" 43 # Very time-consuming 44 "cirq_google/engine/*_test.py" 45 ]; 46 47 disabledTests = [ 48 # unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient' 49 "test_get_engine_sampler_explicit_project_id" 50 "test_get_engine_sampler" 51 # Calibration issue 52 "test_xeb_to_calibration_layer" 53 ]; 54}