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