1{ stdenv, buildPythonPackage, fetchFromGitHub, python,
2 django_hijack, django_nose }:
3buildPythonPackage rec {
4 pname = "django-hijack-admin";
5 version = "2.1.5";
6 name = "${pname}-${version}";
7
8 # the pypi packages don't include everything required for the tests
9 src = fetchFromGitHub {
10 owner = "arteria";
11 repo = "django-hijack-admin";
12 rev = "v${version}";
13 sha256 = "02j75blvkjiz5mv5wc4jxl27rgmjsrl6l67a3p8342jwazzsm6jg";
14 };
15
16 checkInputs = [ django_nose ];
17 propagatedBuildInputs = [ django_hijack ];
18
19 checkPhase = ''
20 runHook preCheck
21 ${python.interpreter} runtests.py hijack_admin
22 runHook postCheck
23 '';
24
25 meta = with stdenv.lib; {
26 description = "Admin integration for django-hijack";
27 homepage = https://github.com/arteria/django-hijack;
28 license = licenses.mit;
29 maintainers = with maintainers; [ lsix ];
30 };
31}