move checkPhase after fixupPhase for python packages

authored by: chaoflow, goibhniu

svn path=/nixpkgs/branches/stdenv-updates/; revision=32625
This commit is contained in:
Florian Friesdorf 2012-02-27 17:34:02 +00:00
parent 9e646d4689
commit d16a15c0a5
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,9 @@
source $stdenv/setup
# move checkPhase from after buildPhase to after fixupPhase
phases="$prePhases unpackPhase patchPhase $preConfigurePhases \
configurePhase $preBuildPhases buildPhase \
$preInstallPhases installPhase fixupPhase checkPhase \
$preDistPhases distPhase $postPhases";
genericBuild

View file

@ -54,6 +54,7 @@
, doCheck ? true
# run after fixupPhase
, checkPhase ?
''
runHook preCheck
@ -69,6 +70,9 @@
python.stdenv.mkDerivation (attrs // {
inherit doCheck buildPhase checkPhase;
# moves checkPhase from after buildPhase to after fixupPhase
builder = ./builder.sh;
name = namePrefix + name;
buildInputs = [ python wrapPython setuptools unzip ] ++ buildInputs ++ pythonPath;