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 ] ++ google-api-core.optional-dependencies.grpc;
31
32 nativeCheckInputs = [
33 freezegun
34 pytestCheckHook
35 ];
36
37 disabledTestPaths = [
38 # No need to test the version number
39 "cirq_google/_version_test.py"
40 # Trace/BPT trap: 5
41 "cirq_google/engine/calibration_test.py"
42 # Very time-consuming
43 "cirq_google/engine/*_test.py"
44 ];
45
46 disabledTests = [
47 # unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient'
48 "test_get_engine_sampler_explicit_project_id"
49 "test_get_engine_sampler"
50 # Calibration issue
51 "test_xeb_to_calibration_layer"
52 ];
53}