aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-oscrypto/APKBUILD
blob: 61017d81b06879f9a1310055a691fccddb0aac24 (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
33
34
35
36
37
# 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.1
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
	skip-failing-test-due-to-expired-cert.patch
	"
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="bf858f59bf6e54d1ac962df4b90eb674844e50f47b217d73d94b05e27280b78671dc04f4211276c04e71b48f92b446bc11f964b7223def24f5d0d878166547f3  py3-oscrypto-1.2.1.tar.gz
b81143ffe4f5ee5bbf52e3fc4ee4770b434b529eff89d7a7e34ec74af2b6eec06823a7bbe2b6761f7b3f7ba8fa260b7ec7d1d04b2cc9efe5c87ae4d10500b42b  skip-failing-test-due-to-expired-cert.patch"