# Template file for 'python-websocket-client' pkgname=python-websocket-client version=0.55.0 revision=1 archs=noarch wrksrc="websocket_client-${version}" build_style=python-module pycompile_module="websocket" hostmakedepends="python-setuptools python3-setuptools" depends="python-six ca-certificates" short_desc="WebSocket client for Python2" maintainer="Sergi Alvarez " license="BSD-3-Clause" homepage="https://github.com/websocket-client/websocket-client" distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz" checksum=f6029deea21218f2c771848935aa26c15699c831770f4fa66958bdaabff80ca0 alternatives="websocket-client:wsdump:/usr/bin/wsdump.py2" pre_build() { sed -i "s|'backports.ssl_match_hostname'||" setup.py } post_install() { vlicense LICENSE } python3-websocket-client_package() { archs=noarch depends="python3-six ca-certificates" pycompile_module="websocket" short_desc="${short_desc/Python2/Python3}" alternatives="websocket-client:wsdump:/usr/bin/wsdump.py3" pkg_install() { vmove usr/bin/wsdump.py3 vmove usr/lib/python3* vlicense LICENSE } }