@@ -1,4 +1,4 @@
1−{ stdenv, python, buildPythonPackage
1+{ stdenv, fetchpatch, python, buildPythonPackage
22, protobuf, google_apputils, pyext, libcxx
33, disabled, doCheck ? true }:
44
@@ -16,6 +16,15 @@ buildPythonPackage rec {
1616 propagatedBuildInputs = [ protobuf google_apputils ];
1717 buildInputs = [ google_apputils pyext ];
1818
19+ patches = [
20+ # Python 3.7 compatibility (remove when protobuf 3.7 is released)
21+ (fetchpatch {
22+ url = "https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7.patch";
23+ sha256 = "09hw22y3423v8bbmc9xm07znwdxfbya6rp78d4zqw6fisdvjkqf1";
24+ stripLen = 1;
25+ })
26+ ];
27+
1928 prePatch = ''
2029 while [ ! -d python ]; do
2130 cd *