2018-07-08 10:39:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
2019-09-10 21:07:14 +01:00
|
|
|
, six, typing, pygments
|
2018-07-08 10:39:29 +01:00
|
|
|
, django, shortuuid, python-dateutil, pytest
|
|
|
|
, pytest-django, pytestcov, mock, vobject
|
2019-09-10 21:07:14 +01:00
|
|
|
, werkzeug, glibcLocales, factory_boy
|
2017-08-13 21:58:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-extensions";
|
2019-10-23 13:30:32 +01:00
|
|
|
version = "2.2.3";
|
2017-08-13 21:58:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-07-08 10:39:29 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-23 13:30:32 +01:00
|
|
|
sha256 = "19bln9z25dmz1waqcxivlwg20dlm033c7f4z3h3mkhzkbk928y71";
|
2017-08-13 21:58:35 +01:00
|
|
|
};
|
|
|
|
|
2018-07-08 10:39:29 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'tox'," ""
|
2019-09-10 21:07:14 +01:00
|
|
|
|
|
|
|
# not yet pytest 5 compatible?
|
|
|
|
rm tests/management/commands/test_set_fake_emails.py
|
|
|
|
rm tests/management/commands/test_set_fake_passwords.py
|
|
|
|
rm tests/management/commands/test_validate_templates.py
|
|
|
|
|
|
|
|
# pip should not be used during tests...
|
|
|
|
rm tests/management/commands/test_pipchecker.py
|
2018-07-08 10:39:29 +01:00
|
|
|
'';
|
2017-08-13 21:58:35 +01:00
|
|
|
|
2018-07-08 10:39:29 +01:00
|
|
|
propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") typing;
|
2017-08-13 21:58:35 +01:00
|
|
|
|
2018-07-08 10:39:29 +01:00
|
|
|
checkInputs = [
|
|
|
|
django shortuuid python-dateutil pytest
|
|
|
|
pytest-django pytestcov mock vobject
|
2019-09-10 21:07:14 +01:00
|
|
|
werkzeug glibcLocales factory_boy pygments
|
2018-07-08 10:39:29 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2017-08-13 21:58:35 +01:00
|
|
|
description = "A collection of custom extensions for the Django Framework";
|
|
|
|
homepage = https://github.com/django-extensions/django-extensions;
|
2017-12-05 22:20:11 +00:00
|
|
|
license = licenses.mit;
|
2017-08-13 21:58:35 +01:00
|
|
|
};
|
|
|
|
}
|