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.

69 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-cryptodomex
  6. PKG_VERSION:=3.9.0
  7. PKG_RELEASE:=1
  8. PYPI_NAME:=pycryptodomex
  9. PKG_HASH:=8b604f4fa1de456d6d19771b01c2823675a75a2c60e51a6b738f71fdfe865370
  10. PKG_LICENSE:=BSD-2-Clause
  11. PKG_LICENSE_FILES:=LICENSE.rst
  12. PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com>
  13. include ../pypi.mk
  14. include $(INCLUDE_DIR)/package.mk
  15. include ../python-package.mk
  16. include ../python3-package.mk
  17. PYTHON_PKG_SETUP_ARGS:=
  18. PYTHON_PKG_SETUP_VARS:= \
  19. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  20. PYTHON3_PKG_SETUP_ARGS:=
  21. PYTHON3_PKG_SETUP_VARS:= \
  22. CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)"
  23. define Package/python-cryptodomex/Default
  24. SECTION:=lang-python
  25. CATEGORY:=Languages
  26. SUBMENU:=Python
  27. TITLE:=A self-contained cryptographic library for Python
  28. URL:=https://www.pycryptodome.org/
  29. DEPENDS:=+libgmp
  30. endef
  31. define Package/python-cryptodomex
  32. $(call Package/python-cryptodomex/Default)
  33. DEPENDS+=+PACKAGE_python-cryptodomex:python
  34. VARIANT:=python
  35. endef
  36. define Package/python3-cryptodomex
  37. $(call Package/python-cryptodomex/Default)
  38. DEPENDS+=+PACKAGE_python3-cryptodomex:python3
  39. VARIANT:=python3
  40. endef
  41. define Package/python-cryptodomex/description
  42. PyCryptodome is a self-contained Python package of low-level
  43. cryptographic primitives.
  44. endef
  45. define Package/python3-cryptodomex/description
  46. $(call Package/python-cryptodomex/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-cryptodomex))
  51. $(eval $(call BuildPackage,python-cryptodomex))
  52. $(eval $(call BuildPackage,python-cryptodomex-src))
  53. $(eval $(call Py3Package,python3-cryptodomex))
  54. $(eval $(call BuildPackage,python3-cryptodomex))
  55. $(eval $(call BuildPackage,python3-cryptodomex-src))