2017-07-02 02:20:39 +02:00
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2023-05-29 13:59:38 +02:00
|
|
|
PKG_NAME:=python-markupsafe
|
2023-06-28 19:54:50 +02:00
|
|
|
PKG_VERSION:=2.1.3
|
2022-12-21 00:20:06 +01:00
|
|
|
PKG_RELEASE:=1
|
2017-07-02 02:20:39 +02:00
|
|
|
|
2023-05-29 13:59:38 +02:00
|
|
|
PYPI_NAME:=MarkupSafe
|
2023-06-28 19:54:50 +02:00
|
|
|
PKG_HASH:=af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad
|
2019-07-11 20:13:42 +02:00
|
|
|
|
2023-06-26 08:28:51 +02:00
|
|
|
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
|
2019-07-11 20:13:42 +02:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
|
|
|
PKG_LICENSE_FILES:=LICENSE.rst
|
2017-07-02 02:20:39 +02:00
|
|
|
|
2023-06-28 19:54:50 +02:00
|
|
|
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
|
|
|
|
|
2019-10-20 21:03:12 +02:00
|
|
|
include ../pypi.mk
|
2017-07-02 02:20:39 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2023-06-28 19:54:50 +02:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2018-01-10 08:56:52 +01:00
|
|
|
include ../python3-package.mk
|
2023-06-28 19:54:50 +02:00
|
|
|
include ../python3-host-build.mk
|
2017-07-02 02:20:39 +02:00
|
|
|
|
|
|
|
define Package/python3-markupsafe
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
SUBMENU:=Python
|
2023-05-29 13:59:38 +02:00
|
|
|
TITLE:=Safely add untrusted strings to HTML/XML markup
|
2019-07-11 20:13:42 +02:00
|
|
|
URL:=https://palletsprojects.com/p/markupsafe/
|
2017-07-02 02:20:39 +02:00
|
|
|
DEPENDS:=+python3-light
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/python3-markupsafe/description
|
2023-05-29 13:59:38 +02:00
|
|
|
MarkupSafe implements a text object that escapes characters so it is
|
|
|
|
safe to use in HTML and XML. Characters that have special meanings are
|
|
|
|
replaced so that they display as the actual characters. This mitigates
|
|
|
|
injection attacks, meaning untrusted user input can safely be displayed
|
|
|
|
on a page.
|
2017-07-02 02:20:39 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call Py3Package,python3-markupsafe))
|
|
|
|
$(eval $(call BuildPackage,python3-markupsafe))
|
2019-07-11 20:13:42 +02:00
|
|
|
$(eval $(call BuildPackage,python3-markupsafe-src))
|
2023-06-28 19:54:50 +02:00
|
|
|
$(eval $(call HostBuild))
|