summaryrefslogtreecommitdiff
path: root/user/py3-websockets
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-websockets')
-rw-r--r--user/py3-websockets/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/py3-websockets/APKBUILD b/user/py3-websockets/APKBUILD
new file mode 100644
index 000000000..3dad1684a
--- /dev/null
+++ b/user/py3-websockets/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=py3-websockets
+_pkgname=${pkgname#py3-}
+pkgver=8.0
+pkgrel=0
+pkgdesc="Python implementation of RFCs 6455 and 7692"
+url="https://pypi.org/project/websockets/"
+arch="all"
+license="BSD-3-Clause"
+depends="python3"
+makedepends="python3-dev"
+subpackages=""
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="8ae408224367b4e1fcab4d39758f75902072b15e833ed9db41afc9b69deb8cb6f1c538c200785e260cd890f31562feaeb99bdbcec445c5561714a9f08b936f6f websockets-8.0.tar.gz"