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.

74 lines
2.3 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. PYPI_NAME:=service_identity
  12. PKG_HASH:=0858a54aabc5b459d1aafa8a518ed2081a285087f349fe3e55197989232e2e2d
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. define Package/python-service-identity/Default
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=Service identity verification
  25. URL:=https://service-identity.readthedocs.io/
  26. endef
  27. define Package/python-service-identity
  28. $(call Package/python-service-identity/Default)
  29. DEPENDS:= \
  30. +PACKAGE_python-service-identity:python-light \
  31. +PACKAGE_python-service-identity:python-attrs \
  32. +PACKAGE_python-service-identity:python-cryptography \
  33. +PACKAGE_python-service-identity:python-ipaddress \
  34. +PACKAGE_python-service-identity:python-pyasn1 \
  35. +PACKAGE_python-service-identity:python-pyasn1-modules
  36. VARIANT:=python
  37. endef
  38. define Package/python3-service-identity
  39. $(call Package/python-service-identity/Default)
  40. DEPENDS:= \
  41. +PACKAGE_python3-service-identity:python3-light \
  42. +PACKAGE_python3-service-identity:python3-attrs \
  43. +PACKAGE_python3-service-identity:python3-cryptography \
  44. +PACKAGE_python3-service-identity:python3-pyasn1 \
  45. +PACKAGE_python3-service-identity:python3-pyasn1-modules
  46. VARIANT:=python3
  47. endef
  48. define Package/python-service-identity/description
  49. service_identity aspires to give you all the tools you need for
  50. verifying whether a certificate is valid for the intended purposes.
  51. endef
  52. define Package/python3-service-identity/description
  53. $(call Package/python-service-identity/description)
  54. .
  55. (Variant for Python3)
  56. endef
  57. $(eval $(call PyPackage,python-service-identity))
  58. $(eval $(call BuildPackage,python-service-identity))
  59. $(eval $(call BuildPackage,python-service-identity-src))
  60. $(eval $(call Py3Package,python3-service-identity))
  61. $(eval $(call BuildPackage,python3-service-identity))
  62. $(eval $(call BuildPackage,python3-service-identity-src))