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.

72 lines
1.8 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=python-cryptodome
  6. PKG_VERSION:=3.9.0
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=pycryptodome
  9. PKG_HASH:=dbeb08ad850056747aa7d5f33273b7ce0b9a77910604a1be7b7a6f2ef076213f
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_LICENSE_FILES:=LICENSE.rst
  12. PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
  13. PKG_CPE_ID:=cpe:/a:pycryptodome:pycryptodome
  14. include ../pypi.mk
  15. include $(INCLUDE_DIR)/package.mk
  16. include ../python-package.mk
  17. include ../python3-package.mk
  18. PYTHON_PKG_SETUP_ARGS:=
  19. PYTHON_PKG_SETUP_VARS:= \
  20. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  21. PYTHON3_PKG_SETUP_ARGS:=
  22. PYTHON3_PKG_SETUP_VARS:= \
  23. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  24. define Package/python-cryptodome/Default
  25. SECTION:=lang-python
  26. CATEGORY:=Languages
  27. SUBMENU:=Python
  28. TITLE:=A self-contained cryptographic library for Python
  29. URL:=https://www.pycryptodome.org/
  30. DEPENDS:=+libgmp
  31. endef
  32. define Package/python-cryptodome
  33. $(call Package/python-cryptodome/Default)
  34. DEPENDS+=+PACKAGE_python-cryptodome:python
  35. VARIANT:=python
  36. CONFLICTS:=python-crypto
  37. endef
  38. define Package/python3-cryptodome
  39. $(call Package/python-cryptodome/Default)
  40. DEPENDS+=+PACKAGE_python3-cryptodome:python3
  41. VARIANT:=python3
  42. CONFLICTS:=python3-crypto
  43. endef
  44. define Package/python-cryptodome/description
  45. PyCryptodome is a self-contained Python package of low-level
  46. cryptographic primitives.
  47. endef
  48. define Package/python3-cryptodome/description
  49. $(call Package/python-cryptodome/description)
  50. .
  51. (Variant for Python3)
  52. endef
  53. $(eval $(call PyPackage,python-cryptodome))
  54. $(eval $(call BuildPackage,python-cryptodome))
  55. $(eval $(call BuildPackage,python-cryptodome-src))
  56. $(eval $(call Py3Package,python3-cryptodome))
  57. $(eval $(call BuildPackage,python3-cryptodome))
  58. $(eval $(call BuildPackage,python3-cryptodome-src))