python-websocket-client: rebuild for Python 3.5
Switch to python3-* pkgs. Convert python3.4-* pkg into dummy pkg.
This commit is contained in:
parent
91c1fee99f
commit
5812630bda
@ -1,12 +1,11 @@
|
||||
# Template file for 'python-websocket-client'
|
||||
pkgname=python-websocket-client
|
||||
version=0.37.0
|
||||
revision=2
|
||||
revision=3
|
||||
noarch=yes
|
||||
wrksrc="websocket_client-${version}"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
hostmakedepends="python-setuptools python3-setuptools"
|
||||
depends="python-six ca-certificates"
|
||||
pycompile_module="websocket"
|
||||
short_desc="WebSocket client for Python2"
|
||||
@ -15,22 +14,28 @@ homepage="https://github.com/liris/websocket-client"
|
||||
license="LGPL-2.1"
|
||||
distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz"
|
||||
checksum=678b246d816b94018af5297e72915160e2feb042e0cde1a9397f502ac3a52f41
|
||||
alternatives="websocket-client:wsdump:/usr/bin/wsdump.py2.7"
|
||||
alternatives="websocket-client:wsdump:/usr/bin/wsdump.py2"
|
||||
|
||||
pre_build() {
|
||||
# use system certs
|
||||
rm -f websocket/cacert.pem
|
||||
}
|
||||
|
||||
python3.4-websocket-client_package() {
|
||||
python3-websocket-client_package() {
|
||||
noarch=yes
|
||||
depends="python3.4-six ca-certificates"
|
||||
pycompile_version="3.4"
|
||||
depends="python3-six ca-certificates"
|
||||
pycompile_module="websocket"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="websocket-client:wsdump:/usr/bin/wsdump.py3.4"
|
||||
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.4
|
||||
vmove usr/lib/python3.4
|
||||
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}"
|
||||
}
|
||||
|
1
srcpkgs/python3-websocket-client
Symbolic link
1
srcpkgs/python3-websocket-client
Symbolic link
@ -0,0 +1 @@
|
||||
python-websocket-client
|
Loading…
Reference in New Issue
Block a user