git.iko.soy/typeable/nixpkgs
on master help sign in
Python: re-enable default testing

In 303e976 default testing of setuptools packages was accidentally disabled.

commit3beda443bc1571ef1d73afe0b3a5463f89299c53 authorFrederik Rietdijk <fridh@fridh.nl> dateMon 9 May 2016, 18:33 (11 years ago) parent3853d1e
1 file changed+7−5
pkgs/development/python-modules/generic/default.nix+7−5
pkgs/development/python-modules/generic/default.nix+7−5
@@ -93,11 +93,13 @@ let
9393 runHook postCheck
9494 '';
9595
96− # We run all tests after software has been installed since that is
97− # a common idiom in Python
98− #
96+ # Python packages that are installed with setuptools
97+ # are typically distributed with tests.
98+ # With Python it's a common idiom to run the tests
99+ # after the software has been installed.
100+
99101 # For backwards compatibility, let's use an alias
100− doInstallCheck = attrs.doCheck or false;
102+ doInstallCheck = attrs.doCheck or true;
101103 }
102104 else
103105 throw "Unsupported format ${format}";
@@ -121,7 +123,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
121123 runHook postConfigure
122124 '';
123125
124− # Python packages don't have a checkPhase, only a installCheckPhase
126+ # Python packages don't have a checkPhase, only an installCheckPhase
125127 doCheck = false;
126128
127129 installPhase = attrs.installPhase or ''