nixpkgs/pkgs/development
Samuel Dionne-Riel f9b16e60da pythonPackages.protobuf: apply patch for python 3.7 only when building with it
Change introduced in #50672.

The patch does not apply on older protobuf like protobuf3_1

```
$ nix-build -E 'with import ./. { }; python3Packages.protobuf.override { protobuf = protobuf3_1; }'
unpacking sources
unpacking source archive /nix/store/1zdyl0cxaa8ha2v1zp75zzdjd6j99d0m-source
source root is source
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/util/python/BUILD
patching sources
applying patch /nix/store/yagx7hvylnnjq7lxbcia0y5lq1r736w3-0a59054c30e4f0ba10f10acfc1d7f3814c63e1a7.patch
patching file google/protobuf/pyext/descriptor.cc
Hunk #1 succeeded at 55 (offset -1 lines).
patching file google/protobuf/pyext/descriptor_containers.cc
patching file google/protobuf/pyext/descriptor_pool.cc
Hunk #1 succeeded at 47 (offset -1 lines).
patching file google/protobuf/pyext/extension_dict.cc
Hunk #1 FAILED at 53.
1 out of 1 hunk FAILED -- saving rejects to file google/protobuf/pyext/extension_dict.cc.rej
patching file google/protobuf/pyext/message.cc
Hunk #1 succeeded at 82 (offset 3 lines).
Hunk #2 succeeded at 1425 (offset -104 lines).
```

Since the patch isn't necessary on python versions older than 3.7, let's
only apply it for version 3.7. This means that most things using older
protobuf implementation will now be able to build when using an older
pythonPackage set (as is most probably the case anyway).

This still leaves protobuf 3.1 using packages hanging, but the errors
will be localized to those that would be breaking anyway with the
upgrade to 3.7 as default python.
2018-12-11 11:30:52 +01:00
..
arduino platformio: 3.5.3 -> 3.6.1 2018-11-01 17:16:02 +08:00
beam-modules hex: correct version handling 2018-11-06 00:17:03 +01:00
bower-modules/generic
compilers Merge master into staging-next 2018-12-08 12:40:13 +01:00
coq-modules coqPackages.simple-io: init at 0.2 2018-12-10 15:35:34 +00:00
dhall-modules Add dhallPackages and add current Prelude 2018-11-04 16:43:41 +01:00
dotnet-modules/patches
em-modules/generic
go-modules go_1_11: fix cross compilation 2018-11-24 10:36:57 +00:00
guile-modules Treewide: use HTTPS on GNU domains 2018-12-02 15:51:59 +01:00
haskell-modules Merge master into staging-next 2018-12-07 15:22:35 +01:00
idris-modules
interpreters metamath: 0.167 -> 0.168 2018-12-11 09:10:06 +00:00
java-modules
libraries libcouchbase: tests can't run in parallel 2018-12-11 09:51:04 +01:00
lisp-modules Add cl-jpeg, cl-pdf & cl-typesetting, no extra external deps 2018-12-05 07:01:40 +01:00
lua-modules
misc systems/parse.nix: support eabihf 2018-12-02 19:49:36 -06:00
mobile androidsdk: Re-add emulator that was broken out of the sdk-tools package. 2018-11-12 13:06:22 -04:00
node-packages nodePackages: Regenerate and fix azure-cli 2018-12-10 11:46:46 +01:00
ocaml-modules ocamlPackages.checkseum: init at 0.0.3 2018-12-11 08:12:27 +00:00
perl-modules perlPackages: remove old broken packets 2018-11-27 08:11:10 +00:00
pharo
pure-modules
python-modules pythonPackages.protobuf: apply patch for python 3.7 only when building with it 2018-12-11 11:30:52 +01:00
r-modules rstudioWrapper: include desktop file 2018-12-07 16:44:01 -05:00
ruby-modules Merge master into staging-next 2018-12-08 12:40:13 +01:00
tools sbt-extras: 2018-09-27 -> 2018-12-04 2018-12-10 12:56:39 -05:00
web nodejs.updateScript: fix evaluation 2018-12-03 00:49:37 +00:00