You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.7 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=python-defusedxml
  7. PKG_VERSION:=0.6.0
  8. PKG_RELEASE:=2
  9. PKG_MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  10. PKG_LICENSE:=Python-2.0
  11. PKG_LICENSE_FILES:=LICENSE
  12. PYPI_NAME:=defusedxml
  13. PKG_HASH:=f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. define Package/python-defusedxml/Default
  19. SUBMENU:=Python
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=XML bomb protection for Python
  23. URL:=https://github.com/tiran/defusedxml
  24. endef
  25. define Package/python-defusedxml
  26. $(call Package/python-defusedxml/Default)
  27. DEPENDS:= \
  28. +PACKAGE_python-defusedxml:python-light \
  29. +PACKAGE_python-defusedxml:python-codecs \
  30. +PACKAGE_python-defusedxml:python-xml
  31. VARIANT:=python
  32. endef
  33. define Package/python3-defusedxml
  34. $(call Package/python-defusedxml/Default)
  35. DEPENDS:= \
  36. +PACKAGE_python3-defusedxml:python3-light \
  37. +PACKAGE_python3-defusedxml:python3-xml
  38. VARIANT:=python3
  39. endef
  40. define Package/python-defusedxml/description
  41. The defusedxml package contains several Python-only workarounds and fixes for
  42. denial of service and other vulnerabilities in Python’s XML libraries.
  43. endef
  44. define Package/python3-defusedxml/description
  45. $(call Package/python-defusedxml/description)
  46. .
  47. (Variant for Python3)
  48. endef
  49. $(eval $(call PyPackage,python-defusedxml))
  50. $(eval $(call BuildPackage,python-defusedxml))
  51. $(eval $(call BuildPackage,python-defusedxml-src))
  52. $(eval $(call Py3Package,python3-defusedxml))
  53. $(eval $(call BuildPackage,python3-defusedxml))
  54. $(eval $(call BuildPackage,python3-defusedxml-src))