summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-17 14:43:32 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-07-17 14:43:32 +0000
commit369a2f6efbd02498aed3681a3c07fd4a2f515a45 (patch)
tree59bf8a81191672b5816f9f5d286d3bdc04e2f972 /user
parentc097d42b24961dedeec39f688f43982c7b8005ea (diff)
downloadpackages-369a2f6efbd02498aed3681a3c07fd4a2f515a45.tar.gz
packages-369a2f6efbd02498aed3681a3c07fd4a2f515a45.tar.bz2
packages-369a2f6efbd02498aed3681a3c07fd4a2f515a45.tar.xz
packages-369a2f6efbd02498aed3681a3c07fd4a2f515a45.zip
user/py3-websockets: new package
Diffstat (limited to 'user')
-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"