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.1.4";
11
12 src = fetchFromGitHub {
13 owner = pname;
14 repo = pname;
15 rev = version;
16 sha256 = "1bp0ybarkrj66qx2gn9954vsjqq2ya1w4bppfhr763mkis8qnb4f";
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}