b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | include $(TOPDIR)/rules.mk |
| 2 | |
| 3 | PKG_NAME:=python-pynacl |
| 4 | PKG_VERSION:=1.5.0 |
| 5 | PKG_RELEASE:=3 |
| 6 | |
| 7 | PYPI_NAME:=PyNaCl |
| 8 | PKG_HASH:=8ac7448f09ab85811607bdd21ec2464495ac8b7c66d146bf545b0f08fb9220ba |
| 9 | |
| 10 | PKG_MAINTAINER:=Javier Marcet <javier@marcet.info> |
| 11 | PKG_LICENSE:=Apache-2.0 |
| 12 | PKG_LICENSE_FILES:=LICENSE |
| 13 | |
| 14 | PKG_BUILD_DEPENDS:=libffi/host python-cffi/host # cffi>=1.4.1 |
| 15 | |
| 16 | PYTHON3_PKG_BUILD_VARS:=SODIUM_INSTALL=system |
| 17 | |
| 18 | include ../pypi.mk |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | include ../python3-package.mk |
| 21 | |
| 22 | define Package/python3-pynacl |
| 23 | CATEGORY:=Languages |
| 24 | SECTION:=lang |
| 25 | SUBMENU:=Python |
| 26 | TITLE:=Python binding to the libsodium library |
| 27 | URL:=https://github.com/pyca/pynacl/ |
| 28 | DEPENDS:=+libsodium +python3-light +python3-cffi +python3-six |
| 29 | endef |
| 30 | |
| 31 | define Package/python3-pynacl/description |
| 32 | PyNaCl is a Python binding to libsodium, which is a fork of the Networking and Cryptography library. |
| 33 | endef |
| 34 | |
| 35 | $(eval $(call Py3Package,python3-pynacl)) |
| 36 | $(eval $(call BuildPackage,python3-pynacl)) |
| 37 | $(eval $(call BuildPackage,python3-pynacl-src)) |