1{ lib, fetchFromGitHub, buildPythonPackage, django, pytest, pytest-django }:
2
3buildPythonPackage rec {
4 pname = "django-logentry-admin";
5 version = "1.1.0";
6
7 src = fetchFromGitHub {
8 owner = "yprez";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "1bndxgvisw8kk52zfdifvly6dl4833wqilxf77pg473172yaf5gq";
12 };
13
14 nativeCheckInputs = [ pytest pytest-django ];
15 checkPhase = ''
16 rm -r logentry_admin __init__.py
17 pytest
18 '';
19
20 propagatedBuildInputs = [ django ];
21
22 meta = with 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