1{ stdenv, buildPythonPackage, fetchFromGitHub, python,
2 django_hijack, django_nose }:
3buildPythonPackage rec {
4 pname = "django-hijack-admin";
5 version = "2.1.5";
6
7 # the pypi packages don't include everything required for the tests
8 src = fetchFromGitHub {
9 owner = "arteria";
10 repo = "django-hijack-admin";
11 rev = "v${version}";
12 sha256 = "02j75blvkjiz5mv5wc4jxl27rgmjsrl6l67a3p8342jwazzsm6jg";
13 };
14
15 checkInputs = [ django_nose ];
16 propagatedBuildInputs = [ django_hijack ];
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 };
30}