# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=py3-oscrypto _pkgname=${pkgname##py3-} pkgver=1.1.1 pkgrel=0 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-setuptools py3-asn1crypto>=1.0.0" 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="7fb3b10dbb4351bd8f05656b6e522a9454971d331fa0d0c3abace02cb582f9d037d0622d16ed8b3e485c2f0927cb32fcfdf721be25e20bf00229bd7473910757 py3-oscrypto-1.1.1.tar.gz"