Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

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

+9 -1
+9 -1
pkgs/development/python-modules/django-hijack-admin/default.nix
··· 17 18 checkPhase = '' 19 runHook preCheck 20 ${python.interpreter} runtests.py hijack_admin 21 runHook postCheck 22 ''; 23 24 meta = with stdenv.lib; { 25 description = "Admin integration for django-hijack"; 26 - homepage = https://github.com/arteria/django-hijack; 27 license = licenses.mit; 28 maintainers = with maintainers; [ lsix ]; 29 };
··· 17 18 checkPhase = '' 19 runHook preCheck 20 + 21 + # we have to do a little bit of tinkering to convince the tests to run against the installed package, not the 22 + # source directory 23 + mkdir testbase 24 + pushd testbase 25 + mv ../runtests.py . 26 ${python.interpreter} runtests.py hijack_admin 27 + popd 28 + 29 runHook postCheck 30 ''; 31 32 meta = with stdenv.lib; { 33 description = "Admin integration for django-hijack"; 34 + homepage = https://github.com/arteria/django-hijack-admin; 35 license = licenses.mit; 36 maintainers = with maintainers; [ lsix ]; 37 };