buildSetupcfg: Include unzip for zip sources.

This commit is contained in:
Shea Levy 2018-04-14 20:09:51 -04:00
parent dfd470466b
commit 0d3eb70133
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
2 changed files with 6 additions and 3 deletions

View file

@ -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 []));

View file

@ -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";