summaryrefslogtreecommitdiff
path: root/python3-websocket-client/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'python3-websocket-client/Pkgfile')
-rw-r--r--python3-websocket-client/Pkgfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/python3-websocket-client/Pkgfile b/python3-websocket-client/Pkgfile
new file mode 100644
index 000000000..9f79b9ddd
--- /dev/null
+++ b/python3-websocket-client/Pkgfile
@@ -0,0 +1,23 @@
+# Description: WebSocket client library for Python.
+# URL: https://github.com/liris/websocket-client
+# Maintainer: Danny Rawlins, crux at romster dot me
+# Packager: Danny Rawlins, crux at romster dot me
+# Depends on: python3-setuptools
+
+name=python3-websocket-client
+_name=websocket_client
+version=0.44.0
+release=1
+source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/$_name-$version.tar.gz
+ use-system-ca.patch)
+
+build() {
+ cd $_name-$version
+
+ patch -p1 -i $SRC/use-system-ca.patch
+ rm websocket/cacert.pem
+ sed -i "s/'backports.ssl_match_hostname'//" setup.py
+
+ /usr/bin/python3 setup.py build
+ /usr/bin/python3 setup.py install --root=$PKG --optimize=1
+}

Generated by cgit