Merge pull request #57181 from FlorianFranzen/protobuf
protobuf: 3.6 -> 3.7
This commit is contained in:
@@ -18,8 +18,8 @@ buildPythonPackage rec {
|
||||
nativeBuildInputs = [ google_apputils pyext ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
patches = optional isPy37
|
||||
# Python 3.7 compatibility (remove when protobuf 3.7 is released)
|
||||
patches = optional (isPy37 && (versionOlder protobuf.version "3.6.1.2"))
|
||||
# Python 3.7 compatibility (not needed for protobuf >= 3.6.1.2)
|
||||
(fetchpatch {
|
||||
url = "https://github.com/protocolbuffers/protobuf/commit/0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7.patch";
|
||||
sha256 = "09hw22y3423v8bbmc9xm07znwdxfbya6rp78d4zqw6fisdvjkqf1";
|
||||
@@ -41,9 +41,9 @@ buildPythonPackage rec {
|
||||
|
||||
preBuild = ''
|
||||
# Workaround for https://github.com/google/protobuf/issues/2895
|
||||
${python}/bin/${python.executable} setup.py build
|
||||
${python.interpreter} setup.py build
|
||||
'' + optionalString (versionAtLeast protobuf.version "2.6.0") ''
|
||||
${python}/bin/${python.executable} setup.py build_ext --cpp_implementation
|
||||
${python.interpreter} setup.py build_ext --cpp_implementation
|
||||
'';
|
||||
|
||||
installFlags = optional (versionAtLeast protobuf.version "2.6.0")
|
||||
|
||||
Reference in New Issue
Block a user