nixpkgs/pkgs/development/python-modules/django-extensions/default.nix
Michal Sojka a3cbcbc9ae django-extensions: 3.1.0 -> 3.1.1
Among other changes, this fixes the following test failure:

    FAILED tests/templatetags/test_syntax_color.py::SyntaxColorTagTests::test_should_colorize_noclasses_with_default_lexer

which was caused by commit 444da66670 ("python3Packages.Pygments: 2.7.2 -> 2.7.4", 2021-02-20).
Upstream fixes it in
2356958fb6.
2021-03-11 00:50:49 +01:00

64 lines
1.3 KiB
Nix

{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, python
, django
, factory_boy
, glibcLocales
, mock
, pygments
, pytest
, pytestcov
, pytest-django
, python-dateutil
, shortuuid
, six
, tox
, typing
, vobject
, werkzeug
}:
buildPythonPackage rec {
pname = "django-extensions";
version = "3.1.1";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "0ss5x3d21c3g8i1s79l4akazlf116yp4y50gx4vrk1dxh3jb29zj";
};
LC_ALL = "en_US.UTF-8";
__darwinAllowLocalNetworking = true;
propagatedBuildInputs = [ six ]
++ lib.optional (pythonOlder "3.5") typing;
checkInputs = [
django
factory_boy
glibcLocales
mock
pygments # not explicitly declared in setup.py, but some tests require it
pytest
pytestcov
pytest-django
python-dateutil
shortuuid
tox
vobject
werkzeug
];
# remove tests that need network access
checkPhase = ''
rm tests/management/commands/test_pipchecker.py
DJANGO_SETTINGS_MODULE=tests.testapp.settings \
pytest django_extensions tests
'';
meta = with lib; {
description = "A collection of custom extensions for the Django Framework";
homepage = "https://github.com/django-extensions/django-extensions";
license = licenses.mit;
};
}