pkgsrc/textproc/py-jinja2/Makefile
adam bb44273ec9 py-jinja2: updated to 2.11.2
Version 2.11.2
Fix a bug that caused callable objects with __getattr__, like Mock to be treated as a contextfunction().
Update wordcount filter to trigger Undefined methods by wrapping the input in soft_unicode().
Fix a hang when displaying tracebacks on Python 32-bit.
Showing an undefined error for an object that raises AttributeError on access doesn’t cause a recursion error.
Revert changes to PackageLoader from 2.10 which removed the dependency on setuptools and pkg_resources, and added limited support for namespace packages. The changes caused issues when using Pytest. Due to the difficulty in supporting Python 2 and PEP 451 simultaneously, the changes are reverted until 3.0.
Fix line numbers in error messages when newlines are stripped.
The special namespace() assignment object in templates works in async environments.
Fix whitespace being removed before tags in the middle of lines when lstrip_blocks is enabled.
NativeEnvironment doesn’t evaluate intermediate strings during rendering. This prevents early evaluation which could change the value of an expression.
2020-04-14 12:10:03 +00:00

31 lines
904 B
Makefile

# $NetBSD: Makefile,v 1.29 2020/04/14 12:10:03 adam Exp $
DISTNAME= Jinja2-2.11.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= textproc python
MASTER_SITES= ${MASTER_SITE_PYPI:=J/Jinja2/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://jinja.palletsprojects.com/
COMMENT= Small but fast and easy to use stand-alone template engine
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-babel>=0.8:../../devel/py-babel
DEPENDS+= ${PYPKGPREFIX}-markupsafe>=0.23:../../textproc/py-markupsafe
TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
USE_LANGUAGES= # none
.include "../../lang/python/pyversion.mk"
# async byte-compilation fails for Python < 3.6
# see https://github.com/pallets/jinja/issues/643
PLIST_VARS+= async
.if ${_PYTHON_VERSION} != 27
PLIST.async= yes
.endif
PYSETUPTESTTARGET= pytest
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"