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.

63 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2007-2016 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-certifi
  9. PKG_VERSION:=2018.11.29
  10. PKG_RELEASE:=1
  11. PKG_LICENSE:=MPL-2.0
  12. PKG_SOURCE:=certifi-$(PKG_VERSION).tar.gz
  13. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/c/certifi
  14. PKG_HASH:=47f9c83ef4c0c621eaef743f133f09fa8a74a9b75f037e8624f83bd1b6626cb7
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-certifi-$(PKG_VERSION)
  16. PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-certifi/Default
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. MAINTAINER:=Eneas U de Queiroz <cote2004-github@yahoo.com>
  25. TITLE:=Python package for providing Mozilla's CA Bundle.
  26. URL:=http://certifi.io/
  27. endef
  28. define Package/python-certifi
  29. $(call Package/python-certifi/Default)
  30. DEPENDS:=+PACKAGE_python-certifi:python-light
  31. VARIANT:=python
  32. endef
  33. define Package/python3-certifi
  34. $(call Package/python-certifi/Default)
  35. DEPENDS:=+PACKAGE_python3-certifi:python3-light
  36. VARIANT:=python3
  37. endef
  38. define Package/python-certifi/description
  39. Certifi is a carefully curated collection of Root Certificates for validating the
  40. trustworthiness of SSL certificates while verifying the identity of TLS hosts.
  41. endef
  42. define Package/python3-certifi/description
  43. $(call Package/python-certifi/description)
  44. .
  45. (Variant for Python3)
  46. endef
  47. $(eval $(call PyPackage,python-certifi))
  48. $(eval $(call BuildPackage,python-certifi))
  49. $(eval $(call BuildPackage,python-certifi-src))
  50. $(eval $(call Py3Package,python3-certifi))
  51. $(eval $(call BuildPackage,python3-certifi))
  52. $(eval $(call BuildPackage,python3-certifi-src))