Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-jinja2 / default.nix
blob77d50b65ce6fc76adc2b519f4fac84a16b6ab0df
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , django
6 , jinja2
7 , python
8 }:
10 buildPythonPackage rec {
11   pname = "django-jinja";
12   version = "2.11.0";
14   disabled = pythonOlder "3.8";
16   format = "setuptools";
18   src = fetchFromGitHub {
19     owner = "niwinz";
20     repo = "django-jinja";
21     rev = "refs/tags/${version}";
22     hash = "sha256-0gkv9xinHux8TRiNBLl/JgcimXU3CzysxzGR2jn7OZ4=";
23   };
25   propagatedBuildInputs = [
26     django
27     jinja2
28   ];
30   checkPhase = ''
31     runHook preCheck
33     ${python.interpreter} testing/runtests.py
35     runHook postCheck
36   '';
38   meta = {
39     description = "Simple and nonobstructive jinja2 integration with Django";
40     homepage = "https://github.com/niwinz/django-jinja";
41     changelog = "https://github.com/niwinz/django-jinja/blob/${src.rev}/CHANGES.adoc";
42     license = lib.licenses.bsd3;
43     maintainers = with lib.maintainers; [ dotlambda ];
44   };