1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, django 5, factory-boy 6, mock 7, pip 8, pygments 9, pytest-django 10, pytestCheckHook 11, shortuuid 12, vobject 13, werkzeug 14}: 15 16buildPythonPackage rec { 17 pname = "django-extensions"; 18 version = "3.2.3"; 19 20 src = fetchFromGitHub { 21 owner = pname; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-A2+5FBv0IhTJPkwgd7je+B9Ac64UHJEa3HRBbWr2FxM="; 25 }; 26 27 postPatch = '' 28 substituteInPlace setup.cfg \ 29 --replace "--cov=django_extensions --cov-report html --cov-report term" "" 30 ''; 31 32 propagatedBuildInputs = [ 33 django 34 ]; 35 36 __darwinAllowLocalNetworking = true; 37 38 nativeCheckInputs = [ 39 factory-boy 40 mock 41 pip 42 pygments # not explicitly declared in setup.py, but some tests require it 43 pytest-django 44 pytestCheckHook 45 shortuuid 46 vobject 47 werkzeug 48 ]; 49 50 disabledTestPaths = [ 51 # requires network access 52 "tests/management/commands/test_pipchecker.py" 53 ]; 54 55 meta = with lib; { 56 description = "A collection of custom extensions for the Django Framework"; 57 homepage = "https://github.com/django-extensions/django-extensions"; 58 license = licenses.mit; 59 }; 60}