depot/third_party/nixpkgs/pkgs/development/python-modules/cirq-google/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

51 lines
1 KiB
Nix

{
buildPythonPackage,
cirq-core,
freezegun,
google-api-core,
protobuf,
pytestCheckHook,
pythonRelaxDepsHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cirq-google";
pyproject = true;
inherit (cirq-core) version src meta;
sourceRoot = "${src.name}/${pname}";
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
cirq-core
google-api-core
protobuf
] ++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
freezegun
pytestCheckHook
];
disabledTestPaths = [
# No need to test the version number
"cirq_google/_version_test.py"
# Trace/BPT trap: 5
"cirq_google/engine/calibration_test.py"
# Very time-consuming
"cirq_google/engine/*_test.py"
];
disabledTests = [
# unittest.mock.InvalidSpecError: Cannot autospec attr 'QuantumEngineServiceClient'
"test_get_engine_sampler_explicit_project_id"
"test_get_engine_sampler"
# Calibration issue
"test_xeb_to_calibration_layer"
];
}