about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django-logentry-admin/default.nix
blob: 59e9782f050126b0f0a584f21f567417dd5a6679 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, buildPythonPackage, django, pytest, pytest-django }:

buildPythonPackage rec {
  pname = "django-logentry-admin";
  version = "1.0.4";

  src = fetchFromGitHub {
    owner = "yprez";
    repo = pname;
    rev = "v${version}";
    sha256 = "1ji04qklzhjb7fx6644vzikjb2196rxyi8hrwf2knsz41ndvq1l9";
  };

  checkInputs = [ pytest pytest-django ];
  checkPhase = ''
    rm -r logentry_admin __init__.py
    pytest
  '';

  propagatedBuildInputs = [ django ];

  meta = with lib; {
    description = "Show all LogEntry objects in the Django admin site";
    homepage = "https://github.com/yprez/django-logentry-admin";
    license = licenses.isc;
    maintainers = with maintainers; [ mrmebelman ];
  };
}