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.3 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-cryptography
  9. PKG_VERSION:=2.8
  10. PKG_RELEASE:=1
  11. PYPI_NAME:=cryptography
  12. PKG_HASH:=3cda1f0ed8747339bbdf71b9f38ca74c7b592f24f65cdb3ab3765e4b02871651
  13. PKG_LICENSE:=Apache-2.0 BSD-3-Clause
  14. PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
  15. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>, Alexandru Ardelean <ardeleanalex@gmail.com>
  16. PKG_BUILD_DEPENDS:=libffi/host
  17. HOST_PYTHON_PACKAGE_BUILD_DEPENDS:="cffi>=1.8,!=1.11.3"
  18. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.8,!=1.11.3"
  19. include ../pypi.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python-package.mk
  22. include ../python3-package.mk
  23. define Package/python-cryptography/Default
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=Cryptographic recipes and primitives
  28. URL:=https://github.com/pyca/cryptography
  29. DEPENDS:=+libopenssl
  30. endef
  31. define Package/python-cryptography
  32. $(call Package/python-cryptography/Default)
  33. DEPENDS+= \
  34. +PACKAGE_python-cryptography:python \
  35. +PACKAGE_python-cryptography:python-cffi \
  36. +PACKAGE_python-cryptography:python-enum34 \
  37. +PACKAGE_python-cryptography:python-ipaddress \
  38. +PACKAGE_python-cryptography:python-six
  39. VARIANT:=python
  40. endef
  41. define Package/python3-cryptography
  42. $(call Package/python-cryptography/Default)
  43. DEPENDS+= \
  44. +PACKAGE_python3-cryptography:python3 \
  45. +PACKAGE_python3-cryptography:python3-cffi \
  46. +PACKAGE_python3-cryptography:python3-six
  47. VARIANT:=python3
  48. endef
  49. define Package/python-cryptography/description
  50. cryptography is a package which provides cryptographic recipes and
  51. primitives to Python developers. Our goal is for it to be your "cryptographic
  52. standard library". It supports Python 2.6-2.7, Python 3.3+, and PyPy 2.6+.
  53. endef
  54. define Package/python3-cryptography/description
  55. $(call Package/python-cryptography/description)
  56. .
  57. (Variant for Python3)
  58. endef
  59. $(eval $(call PyPackage,python-cryptography))
  60. $(eval $(call BuildPackage,python-cryptography))
  61. $(eval $(call BuildPackage,python-cryptography-src))
  62. $(eval $(call Py3Package,python3-cryptography))
  63. $(eval $(call BuildPackage,python3-cryptography))
  64. $(eval $(call BuildPackage,python3-cryptography-src))