pythonPackages.protobuf: Disable google_apputils on python 3
This commit is contained in:
parent
46216c5fa7
commit
7aad6a6a5c
@ -1,6 +1,18 @@
|
|||||||
{ buildPackages, stdenv, fetchpatch, python, buildPythonPackage, isPy37
|
{ buildPackages
|
||||||
, protobuf, google_apputils, pyext, libcxx, isPy27
|
, stdenv
|
||||||
, disabled, doCheck ? true }:
|
, fetchpatch
|
||||||
|
, python
|
||||||
|
, buildPythonPackage
|
||||||
|
, isPy37
|
||||||
|
, protobuf
|
||||||
|
, google_apputils
|
||||||
|
, six
|
||||||
|
, pyext
|
||||||
|
, libcxx
|
||||||
|
, isPy27
|
||||||
|
, disabled
|
||||||
|
, doCheck ? true
|
||||||
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
|
||||||
@ -17,9 +29,9 @@ buildPythonPackage {
|
|||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ google_apputils ];
|
propagatedBuildInputs = [ six ] ++ optionals isPy27 [ google_apputils ];
|
||||||
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
|
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
|
||||||
nativeBuildInputs = [ google_apputils pyext ];
|
nativeBuildInputs = [ pyext ] ++ optionals isPy27 [ google_apputils ];
|
||||||
buildInputs = [ protobuf ];
|
buildInputs = [ protobuf ];
|
||||||
|
|
||||||
patches = optional (isPy37 && (versionOlder protobuf.version "3.6.1.2"))
|
patches = optional (isPy37 && (versionOlder protobuf.version "3.6.1.2"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user