diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2017-09-25 22:51:40 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2017-09-25 22:56:36 +1000 |
commit | faab5a6c4bf736fa22d4b76b833e3e57e2e96659 (patch) | |
tree | 5c65cc6b351485979acbd12f0e44be568c58f7df /python3-websocket-client/Pkgfile | |
parent | a0d18f0877355e77f8287608b3dfbc86e0980083 (diff) | |
download | contrib-faab5a6c4bf736fa22d4b76b833e3e57e2e96659.tar.gz contrib-faab5a6c4bf736fa22d4b76b833e3e57e2e96659.tar.xz |
[notify] python3-websocket-client: initial import for python3-streamlink
Diffstat (limited to 'python3-websocket-client/Pkgfile')
-rw-r--r-- | python3-websocket-client/Pkgfile | 23 |
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 +} |