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. URL:=https://github.com/pyca/service_identity
  27. endef
  28. define Package/python-service-identity
  29. $(call Package/python-service-identity/Default)
  30. TITLE:=python-service-identity
  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. TITLE:=python3-service-identity
  43. DEPENDS:= \
  44. +PACKAGE_python3-service-identity:python3-light \
  45. +PACKAGE_python3-service-identity:python3-attrs \
  46. +PACKAGE_python3-service-identity:python3-cryptography \
  47. +PACKAGE_python3-service-identity:python3-pyasn1 \
  48. +PACKAGE_python3-service-identity:python3-pyasn1-modules
  49. VARIANT:=python3
  50. endef
  51. define Package/python-service-identity/description
  52. service_identity aspires to give you all the tools you need for
  53. verifying whether a certificate is valid for the intended purposes.
  54. endef
  55. define Package/python3-service-identity/description
  56. $(call Package/python-service-identity/description)
  57. .
  58. (Variant for Python3)
  59. endef
  60. $(eval $(call PyPackage,python-service-identity))
  61. $(eval $(call BuildPackage,python-service-identity))
  62. $(eval $(call BuildPackage,python-service-identity-src))
  63. $(eval $(call Py3Package,python3-service-identity))
  64. $(eval $(call BuildPackage,python3-service-identity))
  65. $(eval $(call BuildPackage,python3-service-identity-src))