at 24.11-pre 1.1 kB view raw
1{ lib, stdenv 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, pytest 6, markupsafe 7, setuptools 8}: 9 10buildPythonPackage rec { 11 pname = "Jinja2"; 12 version = "2.11.3"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6"; 17 }; 18 19 nativeCheckInputs = [ pytest ]; 20 propagatedBuildInputs = [ markupsafe setuptools ]; 21 22 # Multiple tests run out of stack space on 32bit systems with python2. 23 # See https://github.com/pallets/jinja/issues/1158 24 # warnings are no longer being filtered correctly for python2 25 doCheck = !stdenv.is32bit && isPy3k; 26 27 checkPhase = '' 28 pytest -v tests -W ignore::DeprecationWarning 29 ''; 30 31 meta = with lib; { 32 homepage = "http://jinja.pocoo.org/"; 33 description = "Stand-alone template engine"; 34 license = licenses.bsd3; 35 longDescription = '' 36 Jinja2 is a template engine written in pure Python. It provides a 37 Django inspired non-XML syntax but supports inline expressions and 38 an optional sandboxed environment. 39 ''; 40 maintainers = with maintainers; [ pierron ]; 41 }; 42}