move checkPhase after fixupPhase for python packages
authored by: chaoflow, goibhniu svn path=/nixpkgs/branches/stdenv-updates/; revision=32625
This commit is contained in:
parent
9e646d4689
commit
d16a15c0a5
2 changed files with 13 additions and 0 deletions
9
pkgs/development/python-modules/generic/builder.sh
Normal file
9
pkgs/development/python-modules/generic/builder.sh
Normal 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
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue