From 9af6a41b40079771c041f45fa81cd78f88b7b65f Mon Sep 17 00:00:00 2001 From: Javier Marcet Date: Mon, 8 Jun 2020 13:57:06 +0200 Subject: [PATCH] python3-pynacl: add a new package Signed-off-by: Javier Marcet --- lang/python/python-pynacl/Makefile | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lang/python/python-pynacl/Makefile diff --git a/lang/python/python-pynacl/Makefile b/lang/python/python-pynacl/Makefile new file mode 100644 index 0000000000..3229278299 --- /dev/null +++ b/lang/python/python-pynacl/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=python-pynacl +PKG_VERSION:=1.4.0 +PKG_RELEASE:=1 + +PYPI_NAME:=PyNaCl +PKG_HASH:=54e9a2c849c742006516ad56a88f5c74bf2ce92c9f67435187c3c5953b346505 + +PKG_MAINTAINER:=Javier Marcet +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_DEPENDS:=libffi/host + +HOST_PYTHON3_PACKAGE_BUILD_DEPENDS:="cffi>=1.4.1" + +PYTHON3_PKG_SETUP_VARS:= SODIUM_INSTALL=system + +include ../pypi.mk +include $(INCLUDE_DIR)/package.mk +include ../python3-package.mk + +define Package/python3-pynacl + CATEGORY:=Languages + SECTION:=lang + SUBMENU:=Python + TITLE:=Python binding to the libsodium library + URL:=https://github.com/pyca/pynacl/ + DEPENDS:=+libsodium +python3-light +python3-cffi +python3-six + VARIANT:=python3 +endef + +define Package/python3-pynacl/description + PyNaCl is a Python binding to libsodium, which is a fork of the Networking and Cryptography library. +endef + +$(eval $(call Py3Package,python3-pynacl)) +$(eval $(call BuildPackage,python3-pynacl)) +$(eval $(call BuildPackage,python3-pynacl-src)) -- 2.30.2