aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-oscrypto/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-oscrypto/APKBUILD')
-rw-r--r--testing/py3-oscrypto/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/py3-oscrypto/APKBUILD b/testing/py3-oscrypto/APKBUILD
new file mode 100644
index 0000000000..20d4afc8e2
--- /dev/null
+++ b/testing/py3-oscrypto/APKBUILD
@@ -0,0 +1,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"