summaryrefslogtreecommitdiff
path: root/user/py3-pynacl
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-20 02:19:34 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-08-20 02:19:34 +0000
commit322aedebd39a7219ce6793a39e1e45c497c9bd3a (patch)
tree3b7bea06026fa8ca7d7ee4938f489abc8c1ab0e7 /user/py3-pynacl
parent2067008050ddc59231eafb88fb97bc3783e345d0 (diff)
downloadpackages-322aedebd39a7219ce6793a39e1e45c497c9bd3a.tar.gz
packages-322aedebd39a7219ce6793a39e1e45c497c9bd3a.tar.bz2
packages-322aedebd39a7219ce6793a39e1e45c497c9bd3a.tar.xz
packages-322aedebd39a7219ce6793a39e1e45c497c9bd3a.zip
user/py3-pynacl: New package
Diffstat (limited to 'user/py3-pynacl')
-rw-r--r--user/py3-pynacl/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/user/py3-pynacl/APKBUILD b/user/py3-pynacl/APKBUILD
new file mode 100644
index 000000000..5374d7d58
--- /dev/null
+++ b/user/py3-pynacl/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=py3-pynacl
+_pkgname=PyNaCl
+_p="${_pkgname#?}"
+_p="${_pkgname%"$_p"}"
+pkgver=1.4.0
+pkgrel=0
+pkgdesc="Python binding to the Networking and Cryptography library (NaCl)"
+url="https://pypi.org/project/PyNaCl/"
+arch="all"
+license="Apache-2.0"
+depends="python3 py3-cffi"
+checkdepends="py3-six py3-hypothesis py3-pytest"
+makedepends="python3-dev libsodium-dev"
+subpackages=""
+source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/PyNaCl-$pkgver"
+
+build() {
+ SODIUM_INSTALL=system python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ SODIUM_INSTALL=system python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="355b974010f94d551f631a2dd5ae792da3d4d0abf8ed70b6decc78aad24a9f965636988aebd14947b137ea14cdcbb73531775f08b1b4d5a9d72b5df3dba0b022 PyNaCl-1.4.0.tar.gz"