2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, python
|
|
|
|
, django
|
|
|
|
, factory_boy
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, pygments
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-django
|
|
|
|
, python-dateutil
|
|
|
|
, shortuuid
|
|
|
|
, six
|
|
|
|
, tox
|
2021-04-26 19:14:03 +00:00
|
|
|
, typing ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
, vobject
|
|
|
|
, werkzeug
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-extensions";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "3.1.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "03mhikhh49z8bxajbjf1j790b9c9vl4zf4f86iwz7g0zrd7jqlvm";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
# remove tests that need network access
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
rm tests/management/commands/test_pipchecker.py
|
2020-12-25 13:55:36 +00:00
|
|
|
DJANGO_SETTINGS_MODULE=tests.testapp.settings \
|
|
|
|
pytest django_extensions tests
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A collection of custom extensions for the Django Framework";
|
|
|
|
homepage = "https://github.com/django-extensions/django-extensions";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|