pythonPackages.protobuf: fix compatibility with Python 3.7
This commit is contained in:
parent
4380a9143b
commit
be8569be49
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, python, buildPythonPackage
|
{ stdenv, fetchpatch, python, buildPythonPackage
|
||||||
, protobuf, google_apputils, pyext, libcxx
|
, protobuf, google_apputils, pyext, libcxx
|
||||||
, disabled, doCheck ? true }:
|
, disabled, doCheck ? true }:
|
||||||
|
|
||||||
@ -16,6 +16,15 @@ buildPythonPackage rec {
|
|||||||
propagatedBuildInputs = [ protobuf google_apputils ];
|
propagatedBuildInputs = [ protobuf google_apputils ];
|
||||||
buildInputs = [ google_apputils pyext ];
|
buildInputs = [ google_apputils pyext ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Python 3.7 compatibility (remove when protobuf 3.7 is released)
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7.patch";
|
||||||
|
sha256 = "09hw22y3423v8bbmc9xm07znwdxfbya6rp78d4zqw6fisdvjkqf1";
|
||||||
|
stripLen = 1;
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
while [ ! -d python ]; do
|
while [ ! -d python ]; do
|
||||||
cd *
|
cd *
|
||||||
|
Loading…
x
Reference in New Issue
Block a user