# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=py3-oscrypto _pkgname=${pkgname##py3-} pkgver=1.1.0 pkgrel=1 pkgdesc="Python crypto library backed by the OS" url="https://github.com/wbond/oscrypto" arch="noarch" license="MIT" 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() { cd "$builddir"/tests python3 setup.py build cd "$builddir" PYTHONPATH="$builddir"/tests/build/lib python3 -m oscrypto_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="4c3d229eb57bf4f7f4f668fa43671d04898aa7ffddd8957e2207e6d1f11a9688a4615e336078932ffde7a4dfc9746907187f5c2ae8f34c6cc6102631c16c2737 py3-oscrypto-1.1.0.tar.gz"