depot/third_party/nixpkgs/pkgs/development/python-modules/django-jinja2/default.nix

46 lines
889 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, django
, jinja2
, python
}:
buildPythonPackage rec {
pname = "django-jinja";
version = "2.10.2";
disabled = pythonOlder "3.6";
format = "setuptools";
src = fetchFromGitHub {
owner = "niwinz";
repo = "django-jinja";
rev = version;
hash = "sha256-IZ4HjBQt6K8xbaYfO5DVlGKUVCQ3UciAUpfnqCjzyCE=";
};
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 ];
};
}