# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-libnacl _pkgname=libnacl pkgver=1.6.1 pkgrel=3 pkgdesc="Python bindings for libsodium/tweetnacl" url="https://libnacl.readthedocs.org/" arch="noarch" license="Apache-2.0" makedepends="py3-setuptools libsodium-dev" source="$_pkgname-$pkgver.tar.gz::https://github.com/saltstack/libnacl/archive/v$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-libnacl" # Backwards compatibility provides="py-libnacl=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 -m unittest discover --start-directory tests -v } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="90fd9302cdfbe84acfc7dff0ac95eeb05fd1bb346cd8b220613174d5d1ae5f627be06b4d588fd4a939c49a119ca557d68a06d3cbe1c0d409a253fdca96d944ac libnacl-1.6.1.tar.gz"