Files
packages/lang/python/python-markupsafe/Makefile
Alexandru Ardelean 1a6bb0a1a2 python-markupsafe: add python-setuptools/host as build dep for targer package
Required now since python3/host no longer provides setuptools bundled.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2025-11-13 19:32:33 +02:00

54 lines
1.5 KiB
Makefile

# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-markupsafe
PKG_VERSION:=3.0.3
PKG_RELEASE:=2
PYPI_NAME:=MarkupSafe
PYPI_SOURCE_NAME:=markupsafe
PKG_HASH:=722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698
PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
PKG_LICENSE:=BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.rst
PKG_BUILD_DEPENDS:=python3/host python-setuptools/host
HOST_BUILD_DEPENDS:= \
python3/host \
python-setuptools/host \
python-build/host \
python-installer/host \
python-wheel/host
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../python3-package.mk
include ../python3-host-build.mk
define Package/python3-markupsafe
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Python
TITLE:=Safely add untrusted strings to HTML/XML markup
URL:=https://palletsprojects.com/p/markupsafe/
DEPENDS:=+python3-light
endef
define Package/python3-markupsafe/description
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.
endef
$(eval $(call Py3Package,python3-markupsafe))
$(eval $(call BuildPackage,python3-markupsafe))
$(eval $(call BuildPackage,python3-markupsafe-src))
$(eval $(call HostBuild))