3
0
Fork 0
forked from mirrors/nixpkgs

python-protobuf: Fix generating *_pb2.py files.

This only happens during setup.py build and generates the corresponding
_pb2.py files from the .proto files, as they're no longer included in
the source distribution starting from 2.5.0.

Thanks to @iElectric for reporting this build failure:

http://hydra.nixos.org/build/6897112

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-11-26 16:38:13 +01:00
parent d34e1ac42c
commit 3ff6197e90
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -4524,6 +4524,10 @@ pythonPackages = modules // import ./python-packages-generated.nix {
protobuf = buildPythonPackage rec {
inherit (pkgs.protobuf) name src;
buildPhase = ''
python setup.py build
'';
propagatedBuildInputs = [pkgs.protobuf];
sourceRoot = "${name}/python";