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.

78 lines
2.5 KiB

  1. #
  2. # Copyright (C) 2016-2018 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-service-identity
  9. PKG_VERSION:=18.1.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=service_identity-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/s/service_identity
  13. PKG_HASH:=0858a54aabc5b459d1aafa8a518ed2081a285087f349fe3e55197989232e2e2d
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-service-identity-$(PKG_VERSION)
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  22. define Package/python-service-identity/Default
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Service identity verification
  27. URL:=https://service-identity.readthedocs.io/
  28. endef
  29. define Package/python-service-identity
  30. $(call Package/python-service-identity/Default)
  31. DEPENDS:= \
  32. +PACKAGE_python-service-identity:python-light \
  33. +PACKAGE_python-service-identity:python-attrs \
  34. +PACKAGE_python-service-identity:python-cryptography \
  35. +PACKAGE_python-service-identity:python-ipaddress \
  36. +PACKAGE_python-service-identity:python-pyasn1 \
  37. +PACKAGE_python-service-identity:python-pyasn1-modules
  38. VARIANT:=python
  39. endef
  40. define Package/python3-service-identity
  41. $(call Package/python-service-identity/Default)
  42. DEPENDS:= \
  43. +PACKAGE_python3-service-identity:python3-light \
  44. +PACKAGE_python3-service-identity:python3-attrs \
  45. +PACKAGE_python3-service-identity:python3-cryptography \
  46. +PACKAGE_python3-service-identity:python3-pyasn1 \
  47. +PACKAGE_python3-service-identity:python3-pyasn1-modules
  48. VARIANT:=python3
  49. endef
  50. define Package/python-service-identity/description
  51. service_identity aspires to give you all the tools you need for
  52. verifying whether a certificate is valid for the intended purposes.
  53. endef
  54. define Package/python3-service-identity/description
  55. $(call Package/python-service-identity/description)
  56. .
  57. (Variant for Python3)
  58. endef
  59. $(eval $(call PyPackage,python-service-identity))
  60. $(eval $(call BuildPackage,python-service-identity))
  61. $(eval $(call BuildPackage,python-service-identity-src))
  62. $(eval $(call Py3Package,python3-service-identity))
  63. $(eval $(call BuildPackage,python3-service-identity))
  64. $(eval $(call BuildPackage,python3-service-identity-src))