summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/build-support/build-setupcfg/default.nix6
-rw-r--r--pkgs/top-level/python-packages.nix3
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/build-support/build-setupcfg/default.nix b/pkgs/build-support/build-setupcfg/default.nix
index bc6482f0a88e..c2d58c3c7857 100644
--- a/pkgs/build-support/build-setupcfg/default.nix
+++ b/pkgs/build-support/build-setupcfg/default.nix
@@ -6,7 +6,7 @@
 # * application: Whether this package is a python library or an
 #   application which happens to be written in python.
 # * doCheck: Whether to run the test suites.
-pythonPackages:
+{ pkgs, pythonPackages }:
 { src, info, meta ? {}, application ? false, doCheck ? true }: let
   build = if application
     then pythonPackages.buildPythonApplication
@@ -16,7 +16,9 @@ in build {
 
   inherit src meta doCheck;
 
-  nativeBuildInputs = map (p: pythonPackages.${p}) (
+  nativeBuildInputs = [
+    pkgs.unzip
+  ] ++ map (p: pythonPackages.${p}) (
     (info.setup_requires or []) ++
     (if doCheck then (info.tests_require or []) else []));
 
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index d5e3a11236c4..db508f054b31 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -67,7 +67,8 @@ let
   }));
 
   # See build-setupcfg/default.nix for documentation.
-  buildSetupcfg = import ../build-support/build-setupcfg self;
+  buildSetupcfg = import ../build-support/build-setupcfg
+    { inherit pkgs; pythonPackages = self; };
 
   graphiteVersion = "1.0.2";