# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=py3-oscrypto _pkgname=${pkgname##py3-} pkgver=1.3.0 pkgrel=5 pkgdesc="Python crypto library backed by the OS" url="https://github.com/wbond/oscrypto" arch="noarch" license="MIT" options="net" # Loads libssl.so/libcrypto.so via Python's FFI. depends="python3 py3-asn1crypto>=1.5.1 libssl3 libcrypto3" makedepends="py3-setuptools" checkdepends="openssl-dev>3" # only for .so symlinks subpackages="$pkgname-doc $pkgname-pyc" 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() { OSCRYPTO_USE_OPENSSL=/usr/lib/libcrypto.so,/usr/lib/libssl.so \ python3 run.py tests || sh -l } package() { mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 docs/* \ "$pkgdir"/usr/share/doc/$pkgname python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" b5baf72e1a09615b267be4d1c4baf2375bb939b5bd3d717ca9ca70776541f590a8608bef95991967e23f3794e6220709ed2fe5acdedfe9bfce1921c879a74bec py3-oscrypto-1.3.0.tar.gz b81143ffe4f5ee5bbf52e3fc4ee4770b434b529eff89d7a7e34ec74af2b6eec06823a7bbe2b6761f7b3f7ba8fa260b7ec7d1d04b2cc9efe5c87ae4d10500b42b skip-failing-test-due-to-expired-cert.patch "