blob: 63e5309d56abcb1528622148590743522d74a071 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001# This is free software, licensed under the GNU General Public License v2.
2# See /LICENSE for more information.
3#
4
5include $(TOPDIR)/rules.mk
6
7PKG_NAME:=python-markupsafe
8PKG_VERSION:=2.1.3
9PKG_RELEASE:=1
10
11PYPI_NAME:=MarkupSafe
12PKG_HASH:=af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad
13
14PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
15PKG_LICENSE:=BSD-3-Clause
16PKG_LICENSE_FILES:=LICENSE.rst
17
18HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
19
20include ../pypi.mk
21include $(INCLUDE_DIR)/package.mk
22include $(INCLUDE_DIR)/host-build.mk
23include ../python3-package.mk
24include ../python3-host-build.mk
25
26define Package/python3-markupsafe
27 SECTION:=lang
28 CATEGORY:=Languages
29 SUBMENU:=Python
30 TITLE:=Safely add untrusted strings to HTML/XML markup
31 URL:=https://palletsprojects.com/p/markupsafe/
32 DEPENDS:=+python3-light
33endef
34
35define Package/python3-markupsafe/description
36MarkupSafe implements a text object that escapes characters so it is
37safe to use in HTML and XML. Characters that have special meanings are
38replaced so that they display as the actual characters. This mitigates
39injection attacks, meaning untrusted user input can safely be displayed
40on a page.
41endef
42
43$(eval $(call Py3Package,python3-markupsafe))
44$(eval $(call BuildPackage,python3-markupsafe))
45$(eval $(call BuildPackage,python3-markupsafe-src))
46$(eval $(call HostBuild))