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 protobuf, 7 pytestCheckHook, 8 setuptools, 9 }: 10 11 buildPythonPackage rec { ··· 16 sourceRoot = "${src.name}/${pname}"; 17 18 build-system = [ setuptools ]; 19 20 dependencies = [ 21 cirq-core
··· 6 protobuf, 7 pytestCheckHook, 8 setuptools, 9 + protobuf4, 10 + fetchpatch, 11 }: 12 13 buildPythonPackage rec { ··· 18 sourceRoot = "${src.name}/${pname}"; 19 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 + ]; 35 36 dependencies = [ 37 cirq-core