pythonPackages.django_hijack_admin: tweak checkPhase to ensure tests are running against installed package, not source directory

This commit is contained in:
Robert Scott 2019-01-19 15:45:30 +00:00
parent 72fc58b3f1
commit ed4bf383a8

View File

@ -17,13 +17,21 @@ buildPythonPackage rec {
checkPhase = ''
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
popd
runHook postCheck
'';
meta = with stdenv.lib; {
description = "Admin integration for django-hijack";
homepage = https://github.com/arteria/django-hijack;
homepage = https://github.com/arteria/django-hijack-admin;
license = licenses.mit;
maintainers = with maintainers; [ lsix ];
};