# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-libnacl pkgver=1.8.0 pkgrel=2 pkgdesc="Python bindings for libsodium/tweetnacl" url="https://libnacl.readthedocs.org/" arch="noarch" license="Apache-2.0" makedepends="py3-setuptools libsodium-dev" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/mgorny/libnacl/archive/refs/tags/v$pkgver.tar.gz" builddir="$srcdir"/libnacl-$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 --skip-build --root="$pkgdir" } sha512sums=" 7a39d646083591782691c4d58fd4d743b385ee553bcc4c4741707a237fa3b1213629b5070390526175bdfe8436859aa7711779ff8b22a981227edb30b94e82d6 py3-libnacl-1.8.0.tar.gz "