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:=17.0.0
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=service_identity-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/de/2a/cab6e30be82c8fcd2339ef618036720eda954cf05daef514e386661c9221
  13. PKG_HASH:=4001fbb3da19e0df22c47a06d29681a398473af4aa9d745eca525b3b2c2302ab
  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-pyasn1 \
  35. +PACKAGE_python-service-identity:python-pyasn1-modules \
  36. +PACKAGE_python-service-identity:python-pyopenssl
  37. VARIANT:=python
  38. endef
  39. define Package/python3-service-identity
  40. $(call Package/python-service-identity/Default)
  41. TITLE:=python3-service-identity
  42. DEPENDS:= \
  43. +PACKAGE_python3-service-identity:python3-light \
  44. +PACKAGE_python3-service-identity:python3-attrs \
  45. +PACKAGE_python3-service-identity:python3-pyasn1 \
  46. +PACKAGE_python3-service-identity:python3-pyasn1-modules \
  47. +PACKAGE_python3-service-identity:python3-pyopenssl
  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))