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.

51 lines
1.4 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.9.2
  10. PKG_RELEASE:=2
  11. PYPI_NAME:=cryptography
  12. PKG_HASH:=a0c30272fb4ddda5f5ffc1089d7405b7a71b0b0f51993cb4e5dbb4590b2fc229
  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. PKG_BUILD_PARALLEL:=0
  18. HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.8,!=1.11.3"
  19. include ../pypi.mk
  20. include $(INCLUDE_DIR)/package.mk
  21. include ../python3-package.mk
  22. define Package/python3-cryptography
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. SUBMENU:=Python
  26. TITLE:=Cryptographic recipes and primitives
  27. URL:=https://github.com/pyca/cryptography
  28. DEPENDS:= \
  29. +libopenssl \
  30. +python3 \
  31. +python3-cffi \
  32. +python3-six
  33. endef
  34. define Package/python3-cryptography/description
  35. cryptography is a package which provides cryptographic recipes and
  36. primitives to Python developers. Our goal is for it to be your "cryptographic
  37. standard library". It supports Python 2.6-2.7, Python 3.3+, and PyPy 2.6+.
  38. endef
  39. $(eval $(call Py3Package,python3-cryptography))
  40. $(eval $(call BuildPackage,python3-cryptography))
  41. $(eval $(call BuildPackage,python3-cryptography-src))