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.

54 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2009-2015, 2017-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-crypto
  9. PKG_VERSION:=2.6.1
  10. PKG_RELEASE:=4
  11. PYPI_NAME:=pycrypto
  12. PKG_HASH:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
  13. PKG_LICENSE:=Public Domain
  14. PKG_LICENSE_FILES:=COPYRIGHT
  15. PKG_CPE_ID:=cpe:/a:dlitz:pycrypto
  16. PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
  17. include ../pypi.mk
  18. include $(INCLUDE_DIR)/package.mk
  19. include ../python3-package.mk
  20. PYTHON3_PKG_SETUP_ARGS:=
  21. PYTHON3_PKG_SETUP_VARS:= \
  22. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  23. define Package/python-crypto/Default
  24. SECTION:=lang-python
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=Python Cryptography Toolkit
  28. URL:=https://www.dlitz.net/software/pycrypto/
  29. DEPENDS:=+libgmp
  30. endef
  31. define Package/python3-crypto
  32. $(call Package/python-crypto/Default)
  33. DEPENDS+=+PACKAGE_python3-crypto:python3
  34. VARIANT:=python3
  35. endef
  36. define Package/python3-crypto/description
  37. A collection of both secure hash functions (such as MD5 and SHA),
  38. and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
  39. .
  40. (Variant for Python3)
  41. endef
  42. $(eval $(call Py3Package,python3-crypto))
  43. $(eval $(call BuildPackage,python3-crypto))
  44. $(eval $(call BuildPackage,python3-crypto-src))