mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
python3Packages.cirq-google: fix build (#355905)
This commit is contained in:
commit
2143d32367
|
@ -6,6 +6,8 @@
|
|||
protobuf,
|
||||
pytestCheckHook,
|
||||
setuptools,
|
||||
protobuf4,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -17,6 +19,20 @@ buildPythonPackage rec {
|
|||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
patches = [
|
||||
# https://github.com/quantumlib/Cirq/pull/6683 Support for protobuf5
|
||||
(fetchpatch {
|
||||
url = "https://github.com/quantumlib/Cirq/commit/bae02e4d83aafa29f50aa52073d86eb913ccb2d3.patch";
|
||||
hash = "sha256-MqHhKa38BTM6viQtWik0TQjN0OPdrwzCZkkqZsiyF5w=";
|
||||
includes = [ "cirq_google/serialization/arg_func_langs_test.py" ];
|
||||
stripLen = 1;
|
||||
})
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"protobuf"
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
cirq-core
|
||||
google-api-core
|
||||
|
|
Loading…
Reference in a new issue