aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-wsproto/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/py3-wsproto/APKBUILD')
-rw-r--r--testing/py3-wsproto/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/testing/py3-wsproto/APKBUILD b/testing/py3-wsproto/APKBUILD
new file mode 100644
index 0000000000..98a99a2f3f
--- /dev/null
+++ b/testing/py3-wsproto/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Michał Polański <michal@polanski.me>
+# Maintainer: Michał Polański <michal@polanski.me>
+pkgname=py3-wsproto
+_pkgname=wsproto
+pkgver=0.15.0
+pkgrel=0
+pkgdesc="Sans-IO WebSocket protocol implementation"
+url="https://github.com/python-hyper/wsproto"
+license="MIT"
+arch="noarch"
+depends="python3 py3-h11"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/python-hyper/wsproto/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
+}
+
+sha512sums="9684966be7160967603800e8b793259e4f83e128b3d407d32665eed1170dc7a730fe2245ddbb7f8fa1b1dea9ce77e74a8e23827187544696662848ccfe3b81cc wsproto-0.15.0.tar.gz"