2018-07-08 10:39:29 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder
|
|
|
|
, six, typing
|
|
|
|
, django, shortuuid, python-dateutil, pytest
|
|
|
|
, pytest-django, pytestcov, mock, vobject
|
|
|
|
, werkzeug, glibcLocales
|
2017-08-13 21:58:35 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-extensions";
|
2018-07-08 10:39:29 +01:00
|
|
|
version = "2.0.7";
|
2017-08-13 21:58:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-07-08 10:39:29 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1xf84wq7ab1zfb3nmf4qgw6mjf5xafjwr3175dyrqrrn6cpvcr4a";
|
2017-08-13 21:58:35 +01:00
|
|
|
};
|
|
|
|
|
2018-07-08 10:39:29 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "'tox'," ""
|
|
|
|
'';
|
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
|
|
|
|
werkzeug glibcLocales
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|