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-12-25 00:11:52 +00:00
|
|
|
version = "2.1.4";
|
2017-08-13 21:58:35 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-07-08 10:39:29 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-25 00:11:52 +00:00
|
|
|
sha256 = "1bp0ybarkrj66qx2gn9954vsjqq2ya1w4bppfhr763mkis8qnb4f";
|
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
|
|
|
};
|
|
|
|
}
|