2022-06-26 10:26:21 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, django
|
|
|
|
, jinja2
|
|
|
|
, python
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-jinja";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.10.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "niwinz";
|
|
|
|
repo = "django-jinja";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-IZ4HjBQt6K8xbaYfO5DVlGKUVCQ3UciAUpfnqCjzyCE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
jinja2
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
2022-06-26 10:26:21 +00:00
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
${python.interpreter} testing/runtests.py
|
|
|
|
|
|
|
|
runHook postCheck
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|