2020-02-18 02:16:08 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, python
|
|
|
|
, django
|
|
|
|
, factory_boy
|
|
|
|
, glibcLocales
|
|
|
|
, mock
|
|
|
|
, pygments
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-django
|
|
|
|
, python-dateutil
|
|
|
|
, shortuuid
|
|
|
|
, six
|
|
|
|
, tox
|
|
|
|
, typing
|
|
|
|
, vobject
|
|
|
|
, werkzeug
|
2017-08-13 22:58:35 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-extensions";
|
2020-09-06 12:17:39 +02:00
|
|
|
version = "3.0.8";
|
2017-08-13 22:58:35 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-07-08 11:39:29 +02:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-09-06 12:17:39 +02:00
|
|
|
sha256 = "1z2si9wpc8irqhi5i2wp4wr05dqxyw4mn2vj3amp0rvsvydws92c";
|
2017-08-13 22:58:35 +02:00
|
|
|
};
|
|
|
|
|
2020-02-18 02:16:08 +01:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
__darwinAllowLocalNetworking = true;
|
2017-08-13 22:58:35 +02:00
|
|
|
|
2020-02-18 02:16:08 +01:00
|
|
|
propagatedBuildInputs = [ six ]
|
|
|
|
++ lib.optional (pythonOlder "3.5") typing;
|
2017-08-13 22:58:35 +02:00
|
|
|
|
2018-07-08 11:39:29 +02:00
|
|
|
checkInputs = [
|
2020-02-18 02:16:08 +01:00
|
|
|
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
|
2018-07-08 11:39:29 +02:00
|
|
|
];
|
|
|
|
|
2020-02-18 02:16:08 +01:00
|
|
|
# tests not compatible with pip>=20
|
|
|
|
checkPhase = ''
|
|
|
|
rm tests/management/commands/test_pipchecker.py
|
|
|
|
${python.interpreter} setup.py test
|
|
|
|
'';
|
2018-07-08 11:39:29 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
2017-08-13 22:58:35 +02:00
|
|
|
description = "A collection of custom extensions for the Django Framework";
|
2020-02-18 02:16:08 +01:00
|
|
|
homepage = "https://github.com/django-extensions/django-extensions";
|
2017-12-05 23:20:11 +01:00
|
|
|
license = licenses.mit;
|
2017-08-13 22:58:35 +02:00
|
|
|
};
|
|
|
|
}
|