Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cirq-google / default.nix
blobc2d36a4f796d0b0d1e93ebab00e046c104b1eda0
1 { buildPythonPackage
2 , cirq-core
3 , freezegun
4 , google-api-core
5 , protobuf
6 , pytestCheckHook
7 , pythonRelaxDepsHook
8 , setuptools
9 }:
11 buildPythonPackage rec {
12   pname = "cirq-google";
13   pyproject = true;
14   inherit (cirq-core) version src meta;
16   sourceRoot = "${src.name}/${pname}";
18   nativeBuildInputs = [
19     pythonRelaxDepsHook
20     setuptools
21   ];
23   propagatedBuildInputs = [
24     cirq-core
25     google-api-core
26     protobuf
27   ] ++ google-api-core.optional-dependencies.grpc;
29   nativeCheckInputs = [
30     freezegun
31     pytestCheckHook
32   ];
34   disabledTestPaths = [
35     # No need to test the version number
36     "cirq_google/_version_test.py"
37     # Trace/BPT trap: 5
38     "cirq_google/engine/calibration_test.py"
39     # Very time-consuming
40     "cirq_google/engine/*_test.py"
41   ];
43   disabledTests = [
44     # unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient'
45     "test_get_engine_sampler_explicit_project_id"
46     "test_get_engine_sampler"
47     # Calibration issue
48     "test_xeb_to_calibration_layer"
49   ];