summary refs log tree commit diff
path: root/pkgs/development/python-modules/django-annoying/default.nix
blob: 3e062f29a0e08f88cb21def7ec245af6aa5ae3ed (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, django
, six
, pytest-django
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "django-annoying";
  version = "0.10.6";

  src = fetchFromGitHub {
    owner = "skorokithakis";
    repo = "django-annoying";
    rev = "v${version}";
    sha256 = "sha256-M1zOLr1Vjf2U0xlW66Mpno+S+b4IKLklN+kYxRaj6cA=";
  };

  patches = [
    (fetchpatch {
      name = "django-4-compatibility.patch";
      url = "https://github.com/skorokithakis/django-annoying/pull/101/commits/51b5bd7bc8bb7a410400667e00d0813603df32bd.patch";
      sha256 = "sha256-gLRlAtIHHJ85I88af3C3y+ZT+nXrj2KrV7QgOuEqspk=";
    })
  ];

  propagatedBuildInputs = [
    django
    six
  ];

  DJANGO_SETTINGS_MODULE = "tests.settings";

  checkInputs = [
    pytest-django
    pytestCheckHook
  ];

  meta = with lib; {
    description = "A django application that tries to eliminate annoying things in the Django framework";
    homepage = "https://skorokithakis.github.io/django-annoying/";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ambroisie ];
  };
}