Commit graph

21 commits

Author SHA1 Message Date
Frederik Rietdijk 1e89d4cccd pythonPackages: move python 2 only expressions to python2-packages.nix 2021-04-03 17:49:45 +02:00
Ben Siraphob 98f26993f2 treewide: remove stdenv where not needed 2021-03-04 19:54:50 +07:00
Ivan Babrou 631aeb11cf pythonPackages.protobuf: remove no longer useful NIX_CFLAGS_COMPILE
* It builds fine on `x86_64-darwin`
* It allows builds on `aarch64-darwin` (#105026)
* There are no Python versions older than 2.7
2021-02-09 23:03:15 -08:00
Pavol Rusnak a4bbfba80d
pkgs/development/python-modules: stdenv.lib -> lib 2021-01-24 01:29:22 +01:00
Sandro Jäckel ac391fdc0b
pythonPackages:google*: Noramlize names by replacing _ with - 2021-01-06 23:59:50 +01:00
Sandro Jäckel 7aad6a6a5c
pythonPackages.protobuf: Disable google_apputils on python 3 2021-01-06 21:54:23 +01:00
Ben Wolsieffer 5642ee3d0e pythonPackages.protobuf: fix cross-compilation 2020-09-30 00:47:29 -04:00
Michael Reilly 84cf00f980
treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
Robin Gloster 5f2b92e3ec
treewide: NIX_*_COMPILE -> string 2019-12-31 00:13:29 +01:00
Jonathan Ringer cd517668c7 pythonPackages.protobuf: disable tests for python2
setupwheels>=41.4 no longer collects the tests correctly
2019-10-18 09:54:04 +02:00
Ben Sima c33f5ad65b protobuf: add license metadata
https://github.com/protocolbuffers/protobuf/blob/master/LICENSE

GitHub doesn't identify it as BSD-3, but it is if you just look at the
license text.
2019-09-12 16:43:15 -07:00
volth 08f68313a4 treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
Robert Schütz 905cdeecac python.pkgs.protobuf: use python.interpreter 2019-04-14 13:21:10 +02:00
Florian Franzen d1feec73e4 protobuf3_6: 3.6.1 -> 3.6.1.3 2019-04-14 13:19:38 +02:00
Pierre Bourdon f20a66084f pythonPackages.protobuf: propagate native pkgs.protobuf input
Python packages depending on the protobuf library often use the "protoc"
tool from pkgs.protobuf to codegen at build time.

This fixes a few regressions from 5c7531872f
2019-03-03 08:07:56 +01:00
Frederik Rietdijk 5c7531872f python.pkgs.protobuf: fix build 2019-02-17 14:40:52 +01:00
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
Ben Wolsieffer be8569be49 pythonPackages.protobuf: fix compatibility with Python 3.7 2018-11-27 12:02:55 -05:00
Daiderd Jordan 8bef91d84a
protobuf: fix missing google.protobuf.compiler 2018-08-17 01:36:41 +02:00
adisbladis d99378654f pythonPackages: Add version and pname attributes to packages 2017-11-23 17:49:43 +01:00
Frederik Rietdijk 07eeeb3600 Python: move expressions in python-modules to their own folders 2017-11-05 10:45:54 +01:00