summaryrefslogtreecommitdiff
path: root/user/py3-pynacl/APKBUILD
blob: 5374d7d5863fe0f8607cd2460c1ac5ff0479d6be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"