43 lines
1.3 KiB
Bash
43 lines
1.3 KiB
Bash
# Template file for 'python-websocket-client'
|
|
pkgname=python-websocket-client
|
|
version=0.44.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="websocket_client-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six ca-certificates"
|
|
pycompile_module="websocket"
|
|
short_desc="WebSocket client for Python2"
|
|
maintainer="Sergi Alvarez <pancake@nopcode.org>"
|
|
homepage="https://github.com/websocket-client/websocket-client"
|
|
license="LGPL-2.1"
|
|
distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz"
|
|
checksum=15f585566e2ea7459136a632b9785aa081093064391878a448c382415e948d72
|
|
alternatives="websocket-client:wsdump:/usr/bin/wsdump.py2"
|
|
|
|
pre_build() {
|
|
sed -i "s|'backports.ssl_match_hostname'||" setup.py
|
|
# use system certs
|
|
rm -f websocket/cacert.pem
|
|
}
|
|
|
|
python3-websocket-client_package() {
|
|
noarch=yes
|
|
depends="python3-six ca-certificates"
|
|
pycompile_module="websocket"
|
|
replaces="python3.4-websocket-client>=0"
|
|
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*
|
|
}
|
|
}
|
|
python3.4-websocket-client_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-websocket-client>=${version}_${revision}"
|
|
}
|