1{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder 2, six, typing 3, django, shortuuid, python-dateutil, pytest 4, pytest-django, pytestcov, mock, vobject 5, werkzeug, glibcLocales 6}: 7 8buildPythonPackage rec { 9 pname = "django-extensions"; 10 version = "2.0.7"; 11 12 src = fetchFromGitHub { 13 owner = pname; 14 repo = pname; 15 rev = version; 16 sha256 = "1xf84wq7ab1zfb3nmf4qgw6mjf5xafjwr3175dyrqrrn6cpvcr4a"; 17 }; 18 19 postPatch = '' 20 substituteInPlace setup.py --replace "'tox'," "" 21 ''; 22 23 propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") typing; 24 25 checkInputs = [ 26 django shortuuid python-dateutil pytest 27 pytest-django pytestcov mock vobject 28 werkzeug glibcLocales 29 ]; 30 31 LC_ALL = "en_US.UTF-8"; 32 33 meta = with lib; { 34 description = "A collection of custom extensions for the Django Framework"; 35 homepage = https://github.com/django-extensions/django-extensions; 36 license = licenses.mit; 37 }; 38}