git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15326 from FRidh/pythontest

Python: re-enable default testing

commitda8c41814adef990daf8aeacaa78fee0221f3071 authorzimbatm <zimbatm@zimbatm.com> dateMon 9 May 2016, 17:46 (11 years ago) parentcf63f2d3beda44
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 ''