From 0d3eb701333006ce73b6abadea4d95f52d1105f3 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 14 Apr 2018 20:09:51 -0400 Subject: buildSetupcfg: Include unzip for zip sources. --- pkgs/build-support/build-setupcfg/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkgs/build-support/build-setupcfg') 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 [])); -- cgit 1.4.1