aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-oscrypto/APKBUILD
blob: 20d4afc8e29f3bf5b40d23f29c11859e3b7575c5 (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
# 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=0.19.1
pkgrel=0
pkgdesc="Python crypto library backed by the OS"
url="https://github.com/wbond/oscrypto"
arch="noarch"
license="MIT"
depends="python3 py3-setuptools py3-asn1crypto"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/wbond/$_pkgname/archive/$pkgver.tar.gz
	0001-Fix-compatibility-with-Python-3.7.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# Hardcoded FTP server used in the test is down.
	python3 run.py tests '^(?!test_tls_error_ftp)$'
}

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="ed43e572b431decdab12bd8832403a439da4adae5715af5c1674c8868ac4a46e51aae6e39f40b8271cb78f936022c844ecf8383e04a05bd6a0f95cc43e93d800  py3-oscrypto-0.19.1.tar.gz
dbd82157997ac418d6e9b3c3be67b5332b7194badb664a3e65bf59562f3e4b3927de61bc1dbd35a7b5547be984d22f01a24a9d37ba83a1f5c268fa298144906b  0001-Fix-compatibility-with-Python-3.7.patch"