python3Packages.cirq-google: fix build (#355905)

authored by

Fabian Affolter and committed by
GitHub
2143d323 18d463bb

+16
+16
pkgs/development/python-modules/cirq-google/default.nix
··· 6 6 protobuf, 7 7 pytestCheckHook, 8 8 setuptools, 9 + protobuf4, 10 + fetchpatch, 9 11 }: 10 12 11 13 buildPythonPackage rec { ··· 16 18 sourceRoot = "${src.name}/${pname}"; 17 19 18 20 build-system = [ setuptools ]; 21 + 22 + patches = [ 23 + # https://github.com/quantumlib/Cirq/pull/6683 Support for protobuf5 24 + (fetchpatch { 25 + url = "https://github.com/quantumlib/Cirq/commit/bae02e4d83aafa29f50aa52073d86eb913ccb2d3.patch"; 26 + hash = "sha256-MqHhKa38BTM6viQtWik0TQjN0OPdrwzCZkkqZsiyF5w="; 27 + includes = [ "cirq_google/serialization/arg_func_langs_test.py" ]; 28 + stripLen = 1; 29 + }) 30 + ]; 31 + 32 + pythonRelaxDeps = [ 33 + "protobuf" 34 + ]; 19 35 20 36 dependencies = [ 21 37 cirq-core