contrib/python3-websocket-client/Pkgfile
2018-02-08 00:42:57 +11:00

23 lines
634 B
Plaintext

# Description: WebSocket client library for Python.
# URL: https://github.com/liris/websocket-client
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: python3-setuptools
name=python3-websocket-client
_name=websocket_client
version=0.46.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
}