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