python3Packages.protobuf: allow for buildPackages.protobuf to be passed
This commit is contained in:
parent
9eb60f25af
commit
2c184fc200
1 changed files with 6 additions and 1 deletions
|
@ -19,7 +19,12 @@ buildPythonPackage {
|
|||
doCheck = doCheck && !isPy27; # setuptools>=41.4 no longer collects correctly on python2
|
||||
|
||||
propagatedBuildInputs = [ six ] ++ lib.optionals isPy27 [ google-apputils ];
|
||||
propagatedNativeBuildInputs = [ buildPackages.protobuf ]; # For protoc.
|
||||
propagatedNativeBuildInputs = let
|
||||
protobufVersion = "${lib.versions.major protobuf.version}_${lib.versions.minor protobuf.version}";
|
||||
in [
|
||||
buildPackages."protobuf${protobufVersion}" # For protoc of the same version.
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pyext ] ++ lib.optionals isPy27 [ google-apputils ];
|
||||
buildInputs = [ protobuf ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue