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