3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.protobuf: Disable google_apputils on python 3

This commit is contained in:
Sandro Jäckel 2021-01-05 12:25:54 +01:00
parent 46216c5fa7
commit 7aad6a6a5c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,6 +1,18 @@
{ buildPackages, stdenv, fetchpatch, python, buildPythonPackage, isPy37
, protobuf, google_apputils, pyext, libcxx, isPy27
, disabled, doCheck ? true }:
{ buildPackages
, stdenv
, fetchpatch
, python
, buildPythonPackage
, isPy37
, protobuf
, google_apputils
, six
, pyext
, libcxx
, isPy27
, disabled
, doCheck ? true
}:
with stdenv.lib;
@ -17,9 +29,9 @@ buildPythonPackage {
outputs = [ "out" "dev" ];
propagatedBuildInputs = [ google_apputils ];
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
nativeBuildInputs = [ google_apputils pyext ];
propagatedBuildInputs = [ six ] ++ optionals isPy27 [ google_apputils ];
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
nativeBuildInputs = [ pyext ] ++ optionals isPy27 [ google_apputils ];
buildInputs = [ protobuf ];
patches = optional (isPy37 && (versionOlder protobuf.version "3.6.1.2"))