Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-extensions / default.nix
blobeb46b6b8692062d16a04a681b8c9d4ecd21beb3c
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
16 buildPythonPackage rec {
17   pname = "django-extensions";
18   version = "3.2.3";
20   src = fetchFromGitHub {
21     owner = pname;
22     repo = pname;
23     rev = "refs/tags/${version}";
24     hash = "sha256-A2+5FBv0IhTJPkwgd7je+B9Ac64UHJEa3HRBbWr2FxM=";
25   };
27   postPatch = ''
28     substituteInPlace setup.cfg \
29       --replace "--cov=django_extensions --cov-report html --cov-report term" ""
30   '';
32   propagatedBuildInputs = [
33     django
34   ];
36   __darwinAllowLocalNetworking = true;
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   ];
50   disabledTestPaths = [
51     # requires network access
52     "tests/management/commands/test_pipchecker.py"
53   ];
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   };