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.

52 lines
1.3 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 ../python3-package.mk
  17. PYTHON3_PKG_SETUP_ARGS:=
  18. PYTHON3_PKG_SETUP_VARS:= \
  19. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  20. define Package/python-cryptodome/Default
  21. SECTION:=lang-python
  22. CATEGORY:=Languages
  23. SUBMENU:=Python
  24. TITLE:=A self-contained cryptographic library for Python
  25. URL:=https://www.pycryptodome.org/
  26. DEPENDS:=+libgmp
  27. endef
  28. define Package/python3-cryptodome
  29. $(call Package/python-cryptodome/Default)
  30. DEPENDS+=+PACKAGE_python3-cryptodome:python3
  31. VARIANT:=python3
  32. CONFLICTS:=python3-crypto
  33. endef
  34. define Package/python3-cryptodome/description
  35. PyCryptodome is a self-contained Python package of low-level
  36. cryptographic primitives.
  37. .
  38. (Variant for Python3)
  39. endef
  40. $(eval $(call Py3Package,python3-cryptodome))
  41. $(eval $(call BuildPackage,python3-cryptodome))
  42. $(eval $(call BuildPackage,python3-cryptodome-src))