diff --git a/srcpkgs/python-Jinja2/template b/srcpkgs/python-Jinja2/template index 3fcd44dc19..a1d57f364f 100644 --- a/srcpkgs/python-Jinja2/template +++ b/srcpkgs/python-Jinja2/template @@ -1,40 +1,36 @@ # Template file for 'python-Jinja2' pkgname=python-Jinja2 -version=2.10.1 -revision=2 -archs=noarch +version=2.11.2 +revision=1 wrksrc="Jinja2-${version}" build_style=python-module -pycompile_module="jinja2" hostmakedepends="python-setuptools python3-setuptools" depends="python-MarkupSafe" -checkdepends="python-MarkupSafe python3-MarkupSafe python-pytest python3-pytest" +checkdepends="tox python-MarkupSafe python3-MarkupSafe python-pytest python3-pytest" short_desc="Full featured template engine (Python2)" maintainer="Alessio Sergi " license="BSD-3-Clause" homepage="http://jinja.pocoo.org/" +changelog="https://raw.githubusercontent.com/pallets/jinja/master/CHANGES.rst" distfiles="${PYPI_SITE}/J/Jinja2/Jinja2-${version}.tar.gz" -checksum=065c4f02ebe7f7cf559e49ee5a95fb800a9e4528727aec6f24402a5374c65013 +checksum=89aab215427ef59c34ad58735269eb58b1a5808103067f7bb9d5836c651b3bb0 do_check() { - python2 -m pytest tests/ - python3 -m pytest tests/ + tox -e py,py27,docs } post_install() { - vlicense LICENSE + vlicense LICENSE.rst # these files are valid only on Python 3.6+ rm -f ${DESTDIR}/${py2_sitelib}/jinja2/asyncsupport.py rm -f ${DESTDIR}/${py2_sitelib}/jinja2/asyncfilters.py } python3-Jinja2_package() { - archs=noarch depends="python3-MarkupSafe" - pycompile_module="jinja2" short_desc="${short_desc/Python2/Python3}" pkg_install() { vmove usr/lib/python3* - vlicense LICENSE + vlicense LICENSE.rst } } diff --git a/srcpkgs/python-Jinja2/update b/srcpkgs/python-Jinja2/update new file mode 100644 index 0000000000..3077367c01 --- /dev/null +++ b/srcpkgs/python-Jinja2/update @@ -0,0 +1 @@ +pattern="Jinja2-\K[0-9.]+(?=.tar.gz)"