@@ -0,0 +1,29 @@
1+{ stdenv, fetchFromGitHub, buildPythonPackage, django, pytest, pytest-django }:
2+
3+buildPythonPackage rec {
4+ pname = "django-logentry-admin";
5+ version = "1.0.4";
6+
7+ src = fetchFromGitHub {
8+ owner = "yprez";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "1ji04qklzhjb7fx6644vzikjb2196rxyi8hrwf2knsz41ndvq1l9";
12+ };
13+
14+ checkInputs = [ pytest pytest-django ];
15+ checkPhase = ''
16+ rm -r logentry_admin __init__.py
17+ pytest
18+ '';
19+
20+ propagatedBuildInputs = [ django ];
21+
22+ meta = with stdenv.lib; {
23+ description = "Show all LogEntry objects in the Django admin site";
24+ homepage = "https://github.com/yprez/django-logentry-admin";
25+ license = licenses.isc;
26+ maintainers = with maintainers; [ mrmebelman ];
27+ };
28+}
29+