pythonPackages.django_hijack_admin: tweak checkPhase to ensure tests are running against installed package, not source directory
This commit is contained in:
parent
72fc58b3f1
commit
ed4bf383a8
@ -17,13 +17,21 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
runHook preCheck
|
runHook preCheck
|
||||||
|
|
||||||
|
# we have to do a little bit of tinkering to convince the tests to run against the installed package, not the
|
||||||
|
# source directory
|
||||||
|
mkdir testbase
|
||||||
|
pushd testbase
|
||||||
|
mv ../runtests.py .
|
||||||
${python.interpreter} runtests.py hijack_admin
|
${python.interpreter} runtests.py hijack_admin
|
||||||
|
popd
|
||||||
|
|
||||||
runHook postCheck
|
runHook postCheck
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Admin integration for django-hijack";
|
description = "Admin integration for django-hijack";
|
||||||
homepage = https://github.com/arteria/django-hijack;
|
homepage = https://github.com/arteria/django-hijack-admin;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ lsix ];
|
maintainers = with maintainers; [ lsix ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user