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.

52 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015-2019 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-idna
  9. PKG_VERSION:=2.9
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=idna
  12. PKG_HASH:=7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb
  13. PKG_LICENSE:=BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE.rst
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/python-idna/Default
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. SUBMENU:=Python
  23. TITLE:=IDNA library
  24. URL:=https://github.com/kjd/idna
  25. endef
  26. define Package/python3-idna
  27. $(call Package/python-idna/Default)
  28. DEPENDS:= \
  29. +PACKAGE_python3-idna:python3-light \
  30. +PACKAGE_python3-idna:python3-codecs
  31. VARIANT:=python3
  32. endef
  33. define Package/python3-idna/description
  34. A library to support the Internationalised Domain Names in Applications
  35. (IDNA) protocol as specified in RFC 5891. This version of the protocol
  36. is often referred to as "IDNA2008" and can produce different results
  37. from the earlier standard from 2003.
  38. .
  39. (Variant for Python3)
  40. endef
  41. $(eval $(call Py3Package,python3-idna))
  42. $(eval $(call BuildPackage,python3-idna))
  43. $(eval $(call BuildPackage,python3-idna-src))