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