Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, django 6, jinja2 7, python 8}: 9 10buildPythonPackage rec { 11 pname = "django-jinja"; 12 version = "2.10.2"; 13 14 disabled = pythonOlder "3.6"; 15 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "niwinz"; 20 repo = "django-jinja"; 21 rev = version; 22 hash = "sha256-IZ4HjBQt6K8xbaYfO5DVlGKUVCQ3UciAUpfnqCjzyCE="; 23 }; 24 25 propagatedBuildInputs = [ 26 django 27 jinja2 28 ]; 29 30 checkPhase = '' 31 runHook preCheck 32 33 ${python.interpreter} testing/runtests.py 34 35 runHook postCheck 36 ''; 37 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 }; 45}