Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.0 kB view raw
1{ buildPythonPackage 2, cirq-core 3, google-api-core 4, protobuf 5, pytestCheckHook 6, freezegun 7}: 8 9buildPythonPackage rec { 10 pname = "cirq-google"; 11 inherit (cirq-core) version src meta; 12 13 sourceRoot = "source/${pname}"; 14 15 postPatch = '' 16 substituteInPlace requirements.txt \ 17 --replace "google-api-core[grpc] >= 1.14.0, < 2.0.0dev" "google-api-core[grpc] >= 1.14.0, < 3.0.0dev" \ 18 --replace "protobuf >= 3.15.0, < 4" "protobuf >= 3.15.0" 19 ''; 20 21 propagatedBuildInputs = [ 22 cirq-core 23 google-api-core 24 protobuf 25 ] ++ google-api-core.optional-dependencies.grpc; 26 27 nativeCheckInputs = [ 28 freezegun 29 pytestCheckHook 30 ]; 31 32 disabledTestPaths = [ 33 # No need to test the version number 34 "cirq_google/_version_test.py" 35 # Trace/BPT trap: 5 36 "cirq_google/engine/calibration_test.py" 37 ]; 38 39 disabledTests = [ 40 # unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient' 41 "test_get_engine_sampler_explicit_project_id" 42 "test_get_engine_sampler" 43 ]; 44 45}