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