Files
nixpkgs/pkgs/development/python-modules/cirq-google/default.nix
2026-08-19 18:39:46 +02:00

55 lines
1.1 KiB
Nix

{
buildPythonPackage,
setuptools,
cirq-core,
google-api-core,
protobuf,
freezegun,
pytest-benchmark,
pytestCheckHook,
typedunits,
}:
buildPythonPackage (finalAttrs: {
pname = "cirq-google";
pyproject = true;
inherit (cirq-core) version src meta;
sourceRoot = "${finalAttrs.src.name}/${finalAttrs.pname}";
build-system = [ setuptools ];
pythonRelaxDeps = [ "protobuf" ];
dependencies = [
cirq-core
google-api-core
protobuf
typedunits
]
++ google-api-core.optional-dependencies.grpc;
nativeCheckInputs = [
freezegun
pytest-benchmark
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"
];
})