1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 django,
7 jinja2,
8 python,
9}:
10
11buildPythonPackage rec {
12 pname = "django-jinja";
13 version = "2.11.0";
14
15 disabled = pythonOlder "3.8";
16
17 format = "setuptools";
18
19 src = fetchFromGitHub {
20 owner = "niwinz";
21 repo = "django-jinja";
22 tag = version;
23 hash = "sha256-0gkv9xinHux8TRiNBLl/JgcimXU3CzysxzGR2jn7OZ4=";
24 };
25
26 propagatedBuildInputs = [
27 django
28 jinja2
29 ];
30
31 checkPhase = ''
32 runHook preCheck
33
34 ${python.interpreter} testing/runtests.py
35
36 runHook postCheck
37 '';
38
39 meta = {
40 description = "Simple and nonobstructive jinja2 integration with Django";
41 homepage = "https://github.com/niwinz/django-jinja";
42 changelog = "https://github.com/niwinz/django-jinja/blob/${src.rev}/CHANGES.adoc";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ dotlambda ];
45 };
46}