Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 39 lines 992 B view raw
1{ stdenv 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, pytest 6, markupsafe }: 7 8buildPythonPackage rec { 9 pname = "Jinja2"; 10 version = "2.11.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "93187ffbc7808079673ef52771baa950426fd664d3aad1d0fa3e95644360e250"; 15 }; 16 17 checkInputs = [ pytest ]; 18 propagatedBuildInputs = [ markupsafe ]; 19 20 # Multiple tests run out of stack space on 32bit systems with python2. 21 # See https://github.com/pallets/jinja/issues/1158 22 doCheck = !stdenv.is32bit || isPy3k; 23 24 checkPhase = '' 25 pytest -v tests 26 ''; 27 28 meta = with stdenv.lib; { 29 homepage = http://jinja.pocoo.org/; 30 description = "Stand-alone template engine"; 31 license = licenses.bsd3; 32 longDescription = '' 33 Jinja2 is a template engine written in pure Python. It provides a 34 Django inspired non-XML syntax but supports inline expressions and 35 an optional sandboxed environment. 36 ''; 37 maintainers = with maintainers; [ pierron sjourdois ]; 38 }; 39}