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.

73 lines
1.8 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 ../python-package.mk
  20. include ../python3-package.mk
  21. PYTHON_PKG_SETUP_ARGS:=
  22. PYTHON_PKG_SETUP_VARS:= \
  23. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  24. PYTHON3_PKG_SETUP_ARGS:=
  25. PYTHON3_PKG_SETUP_VARS:= \
  26. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  27. define Package/python-crypto/Default
  28. SECTION:=lang-python
  29. CATEGORY:=Languages
  30. SUBMENU:=Python
  31. TITLE:=Python Cryptography Toolkit
  32. URL:=https://www.dlitz.net/software/pycrypto/
  33. DEPENDS:=+libgmp
  34. endef
  35. define Package/python-crypto
  36. $(call Package/python-crypto/Default)
  37. DEPENDS+=+PACKAGE_python-crypto:python
  38. VARIANT:=python
  39. endef
  40. define Package/python3-crypto
  41. $(call Package/python-crypto/Default)
  42. DEPENDS+=+PACKAGE_python3-crypto:python3
  43. VARIANT:=python3
  44. endef
  45. define Package/python-crypto/description
  46. A collection of both secure hash functions (such as MD5 and SHA),
  47. and various encryption algorithms (AES, DES, IDEA, RSA, ElGamal, etc.).
  48. endef
  49. define Package/python3-crypto/description
  50. $(call Package/python-crypto/description)
  51. .
  52. (Variant for Python3)
  53. endef
  54. $(eval $(call PyPackage,python-crypto))
  55. $(eval $(call BuildPackage,python-crypto))
  56. $(eval $(call BuildPackage,python-crypto-src))
  57. $(eval $(call Py3Package,python3-crypto))
  58. $(eval $(call BuildPackage,python3-crypto))
  59. $(eval $(call BuildPackage,python3-crypto-src))