diff options
author | Richard Yu <yurichard3839@gmail.com> | 2019-03-01 14:12:24 +0800 |
---|---|---|
committer | Richard Yu <yurichard3839@gmail.com> | 2019-03-01 14:12:24 +0800 |
commit | 2c63742f25575964628240865134fefd8699a97e (patch) | |
tree | fcd6e13b08b74290839287f26c08d3ea558a2d20 /lang/python/python-cryptodomex/Makefile | |
parent | f81ef698d59fa4b0b2a5aa338395312231a83bd5 (diff) |
python-cryptodome: add new package
PyCryptodome is an almost drop-in replacement for the old PyCrypto library.
Signed-off-by: Richard Yu <yurichard3839@gmail.com>
Diffstat (limited to 'lang/python/python-cryptodomex/Makefile')
-rw-r--r-- | lang/python/python-cryptodomex/Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/lang/python/python-cryptodomex/Makefile b/lang/python/python-cryptodomex/Makefile new file mode 100644 index 000000000..6691b7f04 --- /dev/null +++ b/lang/python/python-cryptodomex/Makefile @@ -0,0 +1,73 @@ +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-cryptodomex +PKG_VERSION:=3.7.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=pycryptodomex-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/p/pycryptodomex +PKG_HASH:=b70fe991564e178af02ccf89435a8f9e8d052707a7c4b95bf6027cb785da3175 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-cryptodomex-$(PKG_VERSION) + +PKG_LICENSE:=BSD-2-Clause +PKG_LICENSE_FILES:=LICENSE.rst +PKG_MAINTAINER:=Richard Yu <yurichard3839@gmail.com> + +include $(INCLUDE_DIR)/package.mk +include ../python-package.mk +include ../python3-package.mk + +PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE) + +PYTHON_PKG_SETUP_ARGS:= +PYTHON_PKG_SETUP_VARS:= \ + CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" + +PYTHON3_PKG_SETUP_ARGS:= +PYTHON3_PKG_SETUP_VARS:= \ + CONFIG_BIG_ENDIAN="$(CONFIG_BIG_ENDIAN)" + +define Package/python-cryptodomex/Default + SECTION:=lang-python + CATEGORY:=Languages + SUBMENU:=Python + TITLE:=A self-contained cryptographic library for Python + URL:=https://www.pycryptodome.org/ + DEPENDS:=+libgmp +endef + +define Package/python-cryptodomex +$(call Package/python-cryptodomex/Default) + DEPENDS+=+PACKAGE_python-cryptodomex:python + VARIANT:=python +endef + +define Package/python3-cryptodomex +$(call Package/python-cryptodomex/Default) + DEPENDS+=+PACKAGE_python3-cryptodomex:python3 + VARIANT:=python3 +endef + +define Package/python-cryptodomex/description +PyCryptodome is a self-contained Python package of low-level +cryptographic primitives. +endef + +define Package/python3-cryptodomex/description +$(call Package/python-cryptodomex/description) +. +(Variant for Python3) +endef + +$(eval $(call PyPackage,python-cryptodomex)) +$(eval $(call BuildPackage,python-cryptodomex)) +$(eval $(call BuildPackage,python-cryptodomex-src)) + +$(eval $(call Py3Package,python3-cryptodomex)) +$(eval $(call BuildPackage,python3-cryptodomex)) +$(eval $(call BuildPackage,python3-cryptodomex-src)) |