aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-oscrypto/APKBUILD
blob: e0878d47ba39ec769a5a2f60c6898800827455ee (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                              
            
        



                                                




                                                              
                          


                                                                                         






                                    

                                                                       









                                                               
                                                                                                                                                                       
                                                                                                                                                                              
# 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=3
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.0.0 libssl1.1 libcrypto1.1"
makedepends="py3-setuptools"
checkdepends="openssl-dev" # only for .so symlinks
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() {
	OSCRYPTO_USE_OPENSSL=/usr/lib/libcrypto.so,/usr/lib/libssl.so \
		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"