2016-01-03 00:20:26 +01:00
|
|
|
# Template file for 'python-websocket-client'
|
|
|
|
pkgname=python-websocket-client
|
2016-04-15 23:07:24 +02:00
|
|
|
version=0.37.0
|
2016-04-12 23:49:59 +02:00
|
|
|
revision=1
|
2016-01-03 00:20:26 +01:00
|
|
|
noarch=yes
|
|
|
|
wrksrc="websocket_client-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2016-01-21 18:28:55 +01:00
|
|
|
depends="python-six ca-certificates"
|
2016-01-03 00:20:26 +01:00
|
|
|
pycompile_module="websocket"
|
|
|
|
short_desc="WebSocket client for Python2"
|
|
|
|
maintainer="Sergi Alvarez <pancake@nopcode.org>"
|
|
|
|
homepage="https://github.com/liris/websocket-client"
|
|
|
|
license="LGPL-2.1"
|
|
|
|
distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz"
|
2016-04-15 23:07:24 +02:00
|
|
|
checksum=678b246d816b94018af5297e72915160e2feb042e0cde1a9397f502ac3a52f41
|
2016-01-03 00:20:26 +01:00
|
|
|
|
2016-01-21 18:28:55 +01:00
|
|
|
pre_build() {
|
|
|
|
# use system certs
|
|
|
|
rm -f websocket/cacert.pem
|
|
|
|
}
|
2016-01-03 00:20:26 +01:00
|
|
|
post_install() {
|
|
|
|
rm -f ${DESTDIR}/usr/bin/*
|
|
|
|
vbin build-2.7/scripts-2.7/wsdump.py wsdump
|
|
|
|
vbin build-3.4/scripts-3.4/wsdump.py wsdump3.4
|
|
|
|
}
|
|
|
|
|
|
|
|
python3.4-websocket-client_package() {
|
|
|
|
noarch=yes
|
2016-01-21 18:28:55 +01:00
|
|
|
depends="python3.4-six ca-certificates"
|
2016-01-03 00:20:26 +01:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="websocket"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/bin/wsdump3.4
|
|
|
|
vmove usr/lib/python3.4
|
|
|
|
}
|
|
|
|
}
|