summaryrefslogtreecommitdiff
path: root/lang/python/python-jinja2
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2023-05-29 19:39:45 +0800
committerJeffery To <jeffery.to@gmail.com>2023-05-31 22:32:04 +0800
commit92b307a30286dc5af64a6219fca3003402e2eae2 (patch)
tree3ce0ab3026c619f67554d5bc3f73501a36729d3b /lang/python/python-jinja2
parent1a3df95f7e459106efb602fe2168eeae7167b382 (diff)
Jinja2: Update to 3.1.2, rename source package
This renames the source package from Jinja2 to python-jinja2 to match other Python packages. This also updates the package license files, title, and list of dependencies. Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commit 572387f0cb41f21c72a33533280a58723b7ed570)
Diffstat (limited to 'lang/python/python-jinja2')
-rw-r--r--lang/python/python-jinja2/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/lang/python/python-jinja2/Makefile b/lang/python/python-jinja2/Makefile
new file mode 100644
index 000000000..76ebb2334
--- /dev/null
+++ b/lang/python/python-jinja2/Makefile
@@ -0,0 +1,45 @@
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-jinja2
+PKG_VERSION:=3.1.2
+PKG_RELEASE:=1
+
+PYPI_NAME:=Jinja2
+PKG_HASH:=31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852
+
+PKG_MAINTAINER:=Michal Vasilek <michal.vasilek@nic.cz>
+PKG_LICENSE:=BSD-3-Clause
+PKG_LICENSE_FILES:=LICENSE.rst
+PKG_CPE_ID:=cpe:/a:pocoo:jinja2
+
+include ../pypi.mk
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-jinja2
+ SECTION:=lang
+ CATEGORY:=Languages
+ SUBMENU:=Python
+ TITLE:=Very fast and expressive template engine
+ URL:=https://palletsprojects.com/p/jinja/
+ DEPENDS:= \
+ +python3-light \
+ +python3-asyncio \
+ +python3-logging \
+ +python3-urllib \
+ +python3-markupsafe
+endef
+
+define Package/python3-jinja2/description
+Jinja2 is a full featured template engine for Python. It has full
+unicode support, an optional integrated sandboxed execution
+environment, widely used and BSD licensed.
+endef
+
+$(eval $(call Py3Package,python3-jinja2))
+$(eval $(call BuildPackage,python3-jinja2))
+$(eval $(call BuildPackage,python3-jinja2-src))