b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | # This is free software, licensed under the GNU General Public License v2. |
| 2 | # See /LICENSE for more information. |
| 3 | # |
| 4 | |
| 5 | include $(TOPDIR)/rules.mk |
| 6 | |
| 7 | PKG_NAME:=python-markupsafe |
| 8 | PKG_VERSION:=2.1.3 |
| 9 | PKG_RELEASE:=1 |
| 10 | |
| 11 | PYPI_NAME:=MarkupSafe |
| 12 | PKG_HASH:=af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad |
| 13 | |
| 14 | PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com> |
| 15 | PKG_LICENSE:=BSD-3-Clause |
| 16 | PKG_LICENSE_FILES:=LICENSE.rst |
| 17 | |
| 18 | HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host |
| 19 | |
| 20 | include ../pypi.mk |
| 21 | include $(INCLUDE_DIR)/package.mk |
| 22 | include $(INCLUDE_DIR)/host-build.mk |
| 23 | include ../python3-package.mk |
| 24 | include ../python3-host-build.mk |
| 25 | |
| 26 | define 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 |
| 33 | endef |
| 34 | |
| 35 | define Package/python3-markupsafe/description |
| 36 | MarkupSafe implements a text object that escapes characters so it is |
| 37 | safe to use in HTML and XML. Characters that have special meanings are |
| 38 | replaced so that they display as the actual characters. This mitigates |
| 39 | injection attacks, meaning untrusted user input can safely be displayed |
| 40 | on a page. |
| 41 | endef |
| 42 | |
| 43 | $(eval $(call Py3Package,python3-markupsafe)) |
| 44 | $(eval $(call BuildPackage,python3-markupsafe)) |
| 45 | $(eval $(call BuildPackage,python3-markupsafe-src)) |
| 46 | $(eval $(call HostBuild)) |