Python: re-enable default testing

In 303e976 default testing of setuptools packages was accidentally
disabled.
This commit is contained in:
Frederik Rietdijk 2016-05-09 18:33:43 +02:00
parent 3853d1e97f
commit 3beda443bc

View File

@ -93,11 +93,13 @@ let
runHook postCheck runHook postCheck
''; '';
# We run all tests after software has been installed since that is # Python packages that are installed with setuptools
# a common idiom in Python # are typically distributed with tests.
# # With Python it's a common idiom to run the tests
# after the software has been installed.
# For backwards compatibility, let's use an alias # For backwards compatibility, let's use an alias
doInstallCheck = attrs.doCheck or false; doInstallCheck = attrs.doCheck or true;
} }
else else
throw "Unsupported format ${format}"; throw "Unsupported format ${format}";
@ -121,7 +123,7 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled" "doCheck"] //
runHook postConfigure runHook postConfigure
''; '';
# Python packages don't have a checkPhase, only a installCheckPhase # Python packages don't have a checkPhase, only an installCheckPhase
doCheck = false; doCheck = false;
installPhase = attrs.installPhase or '' installPhase = attrs.installPhase or ''