@@ -1,59 +1,54 @@
1−{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, django
1+{ lib
2+, buildPythonPackage
3+, fetchFromGitHub
4+, django
25, factory_boy
3−, glibcLocales
46, mock
57, pygments
6−, pytest
7−, pytest-cov
88, pytest-django
9−, python-dateutil
9+, pytestCheckHook
1010, shortuuid
11−, six
12−, tox
13−, typing ? null
1411, vobject
1512, werkzeug
1613}:
1714
1815buildPythonPackage rec {
1916 pname = "django-extensions";
20− version = "3.1.3";
17+ version = "3.1.5";
2118
2219 src = fetchFromGitHub {
2320 owner = pname;
2421 repo = pname;
2522 rev = version;
26− sha256 = "03mhikhh49z8bxajbjf1j790b9c9vl4zf4f86iwz7g0zrd7jqlvm";
23+ sha256 = "sha256-NAMa78KhAuoJfp0Cb0Codz84sRfRQ1JhSLNYRI4GBPM=";
2724 };
2825
29− LC_ALL = "en_US.UTF-8";
30− __darwinAllowLocalNetworking = true;
26+ postPatch = ''
27+ substituteInPlace setup.cfg \
28+ --replace "--cov=django_extensions --cov-report html --cov-report term" ""
29+ '';
3130
32− propagatedBuildInputs = [ six ]
33− ++ lib.optional (pythonOlder "3.5") typing;
31+ propagatedBuildInputs = [
32+ django
33+ ];
34+
35+ __darwinAllowLocalNetworking = true;
3436
3537 checkInputs = [
36− django
3738 factory_boy
38− glibcLocales
3939 mock
4040 pygments # not explicitly declared in setup.py, but some tests require it
41− pytest
42− pytest-cov
4341 pytest-django
44− python-dateutil
42+ pytestCheckHook
4543 shortuuid
46− tox
4744 vobject
4845 werkzeug
4946 ];
5047
51− # remove tests that need network access
52− checkPhase = ''
53− rm tests/management/commands/test_pipchecker.py
54− DJANGO_SETTINGS_MODULE=tests.testapp.settings \
55− pytest django_extensions tests
56− '';
48+ disabledTestPaths = [
49+ # requires network access
50+ "tests/management/commands/test_pipchecker.py"
51+ ];
5752
5853 meta = with lib; {
5954 description = "A collection of custom extensions for the Django Framework";