diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2016-09-01 17:10:38 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-09-01 17:11:32 +0200 |
commit | e1d1a573e58067dae9c45eba621f8032feb811fe (patch) | |
tree | 0e214cee8fae2b1be76cca915f22e76efa33a4f8 /pkgs/development/interpreters | |
parent | 6e61dfb647df78afc65625c057ddef21726b9d28 (diff) |
Python: fix mkPythonDerivation doCheck
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/mk-python-derivation.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/interpreters/python/mk-python-derivation.nix b/pkgs/development/interpreters/python/mk-python-derivation.nix index 47e55be4bafc9..99af42cd7add2 100644 --- a/pkgs/development/interpreters/python/mk-python-derivation.nix +++ b/pkgs/development/interpreters/python/mk-python-derivation.nix @@ -41,6 +41,8 @@ , passthru ? {} +, doCheck ? false + , ... } @ attrs: @@ -58,14 +60,14 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // { buildInputs = [ wrapPython ] ++ buildInputs ++ pythonPath ++ [ (ensureNewerSourcesHook { year = "1980"; }) ] ++ (lib.optional (lib.hasSuffix "zip" attrs.src.name or "") unzip) - ++ lib.optionals attrs.doCheck checkInputs; + ++ lib.optionals doCheck checkInputs; # propagate python/setuptools to active setup-hook in nix-shell propagatedBuildInputs = propagatedBuildInputs ++ [ python setuptools ]; # Python packages don't have a checkPhase, only an installCheckPhase doCheck = false; - doInstallCheck = attrs.doCheck or false; + doInstallCheck = doCheck; postFixup = attrs.postFixup or '' wrapPythonPrograms |