aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-oscrypto/APKBUILD
blob: 2b2d9bcf4ed5d37c4fcf67de7573585687ec1101 (plain)
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
33
34
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=py3-oscrypto
_pkgname=${pkgname##py3-}
pkgver=1.2.0
pkgrel=1
pkgdesc="Python crypto library backed by the OS"
url="https://github.com/wbond/oscrypto"
arch="noarch"
license="MIT"
options="net" # required to make tests pass in abuild rootbld
depends="python3 py3-asn1crypto>=1.0.0"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wbond/oscrypto/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 run.py tests
}

package() {
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -m644 docs/* \
		"$pkgdir"/usr/share/doc/$pkgname

	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="5ee34db3201d50bbc76ed0f45a7f5bc94bb00a50ba5d4073829a4abb98bff83f173e2d69adf4b1b9018195623ef1fdb9bd7861a784e22b4a9ac9470b678cd59b  py3-oscrypto-1.2.0.tar.gz"