python3Packages.jinja2: 2.11.3 -> 3.0.1
This commit is contained in:
@@ -1,39 +1,44 @@
|
||||
{ lib, stdenv
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, pythonOlder
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, Babel
|
||||
, markupsafe
|
||||
, setuptools
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Jinja2";
|
||||
version = "2.11.3";
|
||||
version = "3.0.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "a6d58433de0ae800347cab1fa3043cebbabe8baa9d29e668f1c768cb87a333c6";
|
||||
sha256 = "197ms1wimxql650245v63wkv04n8bicj549wfhp51bx68x5lhgvh";
|
||||
};
|
||||
|
||||
checkInputs = [ pytest ];
|
||||
propagatedBuildInputs = [ markupsafe setuptools ];
|
||||
propagatedBuildInputs = [
|
||||
Babel
|
||||
markupsafe
|
||||
];
|
||||
|
||||
# Multiple tests run out of stack space on 32bit systems with python2.
|
||||
# See https://github.com/pallets/jinja/issues/1158
|
||||
doCheck = !stdenv.is32bit || isPy3k;
|
||||
doCheck = !stdenv.is32bit;
|
||||
|
||||
checkPhase = ''
|
||||
pytest -v tests
|
||||
'';
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://jinja.pocoo.org/";
|
||||
description = "Stand-alone template engine";
|
||||
license = licenses.bsd3;
|
||||
longDescription = ''
|
||||
Jinja2 is a template engine written in pure Python. It provides a
|
||||
Django inspired non-XML syntax but supports inline expressions and
|
||||
Jinja is a fast, expressive, extensible templating engine. Special
|
||||
placeholders in the template allow writing code similar to Python
|
||||
syntax. Then the template is passed data to render the final document.
|
||||
an optional sandboxed environment.
|
||||
'';
|
||||
maintainers = with maintainers; [ pierron sjourdois ];
|
||||
|
||||
Reference in New Issue
Block a user