1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5, django
6, six
7, pytest-django
8, pytestCheckHook
9}:
10
11buildPythonPackage rec {
12 pname = "django-annoying";
13 version = "0.10.6";
14
15 src = fetchFromGitHub {
16 owner = "skorokithakis";
17 repo = "django-annoying";
18 rev = "v${version}";
19 sha256 = "sha256-M1zOLr1Vjf2U0xlW66Mpno+S+b4IKLklN+kYxRaj6cA=";
20 };
21
22 patches = [
23 (fetchpatch {
24 name = "django-4-compatibility.patch";
25 url = "https://github.com/skorokithakis/django-annoying/pull/101/commits/51b5bd7bc8bb7a410400667e00d0813603df32bd.patch";
26 sha256 = "sha256-gLRlAtIHHJ85I88af3C3y+ZT+nXrj2KrV7QgOuEqspk=";
27 })
28 ];
29
30 propagatedBuildInputs = [
31 django
32 six
33 ];
34
35 DJANGO_SETTINGS_MODULE = "tests.settings";
36
37 checkInputs = [
38 pytest-django
39 pytestCheckHook
40 ];
41
42 meta = with lib; {
43 description = "A django application that tries to eliminate annoying things in the Django framework";
44 homepage = "https://skorokithakis.github.io/django-annoying/";
45 license = licenses.bsd3;
46 maintainers = with maintainers; [ ambroisie ];
47 };
48}