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.

69 lines
1.8 KiB

  1. #
  2. # Copyright (C) 2015-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-pyopenssl
  9. PKG_VERSION:=19.1.0
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=pyOpenSSL
  12. PKG_HASH:=9a24494b2602aaf402be5c9e30a0b82d4a5c67528fe8fb475e3f3bc00dd69507
  13. PKG_LICENSE:=Apache-2.0
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_CPE_ID:=cpe:/a:pyopenssl_project:pyopenssl
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python-package.mk
  20. include ../python3-package.mk
  21. define Package/python-pyopenssl/Default
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. TITLE:=OpenSSL wrapper
  26. URL:=https://pyopenssl.org/
  27. endef
  28. define Package/python-pyopenssl
  29. $(call Package/python-pyopenssl/Default)
  30. DEPENDS:= \
  31. +PACKAGE_python-pyopenssl:python-light \
  32. +PACKAGE_python-pyopenssl:python-cryptography \
  33. +PACKAGE_python-pyopenssl:python-six
  34. VARIANT:=python
  35. endef
  36. define Package/python3-pyopenssl
  37. $(call Package/python-pyopenssl/Default)
  38. DEPENDS:= \
  39. +PACKAGE_python3-pyopenssl:python3-light \
  40. +PACKAGE_python3-pyopenssl:python3-cryptography \
  41. +PACKAGE_python3-pyopenssl:python3-six
  42. VARIANT:=python3
  43. endef
  44. define Package/python-pyopenssl/description
  45. Python wrapper module around the OpenSSL library
  46. endef
  47. define Package/python3-pyopenssl/description
  48. $(call Package/python-pyopenssl/description)
  49. .
  50. (Variant for Python3).
  51. endef
  52. $(eval $(call PyPackage,python-pyopenssl))
  53. $(eval $(call BuildPackage,python-pyopenssl))
  54. $(eval $(call BuildPackage,python-pyopenssl-src))
  55. $(eval $(call Py3Package,python3-pyopenssl))
  56. $(eval $(call BuildPackage,python3-pyopenssl))
  57. $(eval $(call BuildPackage,python3-pyopenssl-src))