From 603a369b8944c2b2f15c67218f345211fafda6fa Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Sat, 14 Apr 2018 20:12:22 -0400 Subject: [PATCH] Revert "buildSetupcfg: Include unzip for zip sources." Misunderstood the error I was seeing. This reverts commit 0d3eb701333006ce73b6abadea4d95f52d1105f3. --- pkgs/build-support/build-setupcfg/default.nix | 6 ++---- pkgs/top-level/python-packages.nix | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/build-support/build-setupcfg/default.nix b/pkgs/build-support/build-setupcfg/default.nix index c2d58c3c7857..bc6482f0a88e 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. -{ pkgs, pythonPackages }: +pythonPackages: { src, info, meta ? {}, application ? false, doCheck ? true }: let build = if application then pythonPackages.buildPythonApplication @@ -16,9 +16,7 @@ in build { inherit src meta doCheck; - nativeBuildInputs = [ - pkgs.unzip - ] ++ map (p: pythonPackages.${p}) ( + nativeBuildInputs = 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 db508f054b31..d5e3a11236c4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -67,8 +67,7 @@ let })); # See build-setupcfg/default.nix for documentation. - buildSetupcfg = import ../build-support/build-setupcfg - { inherit pkgs; pythonPackages = self; }; + buildSetupcfg = import ../build-support/build-setupcfg self; graphiteVersion = "1.0.2";