packages/lang/python/python-defusedxml/Makefile
Jeffery To 635cb1309c treewide: Use pypi.mk for Python packages
This updates all Python packages that download their source from PyPi to
use pypi.mk.

This will allow future improvements/changes to pypi.mk to affect all
relevant packages.

This also makes it easier for future Python packages to start using
pypi.mk, when it's clear how it is used in existing packages.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2019-10-30 23:16:18 +08:00

66 lines
1.7 KiB
Makefile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-defusedxml
PKG_VERSION:=0.6.0
PKG_RELEASE:=2
PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
PKG_LICENSE:=Python-2.0
PKG_LICENSE_FILES:=LICENSE
PYPI_NAME:=defusedxml
PKG_HASH:=f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5
include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python-package.mk
include ../python3-package.mk
define Package/python-defusedxml/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=XML bomb protection for Python
URL:=https://github.com/tiran/defusedxml
endef
define Package/python-defusedxml
$(call Package/python-defusedxml/Default)
DEPENDS:= \
+PACKAGE_python-defusedxml:python-light \
+PACKAGE_python-defusedxml:python-codecs \
+PACKAGE_python-defusedxml:python-xml
VARIANT:=python
endef
define Package/python3-defusedxml
$(call Package/python-defusedxml/Default)
DEPENDS:= \
+PACKAGE_python3-defusedxml:python3-light \
+PACKAGE_python3-defusedxml:python3-xml
VARIANT:=python3
endef
define Package/python-defusedxml/description
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Pythons XML libraries.
endef
define Package/python3-defusedxml/description
$(call Package/python-defusedxml/description)
.
(Variant for Python3)
endef
$(eval $(call PyPackage,python-defusedxml))
$(eval $(call BuildPackage,python-defusedxml))
$(eval $(call BuildPackage,python-defusedxml-src))
$(eval $(call Py3Package,python3-defusedxml))
$(eval $(call BuildPackage,python3-defusedxml))
$(eval $(call BuildPackage,python3-defusedxml-src))