From 3ff6197e90690fcf905d29f261a31768be7a2e62 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 26 Nov 2013 16:38:13 +0100 Subject: [PATCH] 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 --- pkgs/top-level/python-packages.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 21ff841f29b..e3d81baf39b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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";