summary refs log tree commit diff
path: root/pkgs/development/python-modules/protobuf
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2018-08-17 01:35:17 +0200
committerDaiderd Jordan <daiderd@gmail.com>2018-08-17 01:36:41 +0200
commit8bef91d84a51d7cc7c2774dd4b2fea840f95a91f (patch)
treeffc051004b6dcb99a40491bb5ee77bb2e0eecadc /pkgs/development/python-modules/protobuf
parentd8b202698ce48e43dbe3f7fb9d704136615d1254 (diff)
downloadnixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.gz
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.bz2
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.lz
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.xz
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.tar.zst
nixpkgs-8bef91d84a51d7cc7c2774dd4b2fea840f95a91f.zip
protobuf: fix missing google.protobuf.compiler
Diffstat (limited to 'pkgs/development/python-modules/protobuf')
-rw-r--r--pkgs/development/python-modules/protobuf/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/protobuf/default.nix b/pkgs/development/python-modules/protobuf/default.nix
index 1a345b19ef9..9059080c919 100644
--- a/pkgs/development/python-modules/protobuf/default.nix
+++ b/pkgs/development/python-modules/protobuf/default.nix
@@ -28,7 +28,10 @@ buildPythonPackage rec {
     export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION_VERSION=2
   '';
 
-  preBuild = optionalString (versionAtLeast protobuf.version "2.6.0") ''
+  preBuild = ''
+    # Workaround for https://github.com/google/protobuf/issues/2895
+    ${python}/bin/${python.executable} setup.py build
+  '' + optionalString (versionAtLeast protobuf.version "2.6.0") ''
     ${python}/bin/${python.executable} setup.py build_ext --cpp_implementation
   '';