mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
30 lines
1,006 B
Text
30 lines
1,006 B
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-libnacl
|
|
_pkgname=libnacl
|
|
pkgver=1.7.2
|
|
pkgrel=1
|
|
pkgdesc="Python bindings for libsodium/tweetnacl"
|
|
url="https://libnacl.readthedocs.org/"
|
|
arch="noarch !armhf !armv7 !x86" # Tests fail on the builder but pass on CI
|
|
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="a4efbf73f73d9493ac365efa5a5bd6481f85ce4c880ad236bbf7478090bdea857e78e33e445c4e467d2a2032040863b835f32f9a942d2f1e467015bd76b0d469 libnacl-1.7.2.tar.gz"
|