mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
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 = ''
|
||||
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 ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user