2019-01-11 05:46:48 +01:00
|
|
|
# Template file for 'python-wsproto'
|
|
|
|
pkgname=python-wsproto
|
2019-01-25 13:44:04 +01:00
|
|
|
version=0.13.0
|
2019-01-11 05:46:48 +01:00
|
|
|
revision=1
|
|
|
|
noarch=yes
|
|
|
|
wrksrc="wsproto-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="wsproto"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
|
|
depends="python python-h11 python-enum34"
|
|
|
|
short_desc="Sans-IO WebSocket protocol implementation (Python2)"
|
|
|
|
maintainer="Nathan Owens <ndowens04@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://wsproto.readthedocs.io"
|
|
|
|
distfiles="https://github.com/python-hyper/wsproto/archive/${version}.tar.gz"
|
2019-01-25 13:44:04 +01:00
|
|
|
checksum=3f4cbd2e4ded2fe6a1b1f2826dec471e7ad53aa3b65397ce484c5c27cf81a4a8
|
2019-01-11 05:46:48 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
python3-wsproto_package() {
|
|
|
|
noarch=yes
|
|
|
|
pycompile_module="wsproto"
|
|
|
|
depends="python3 python3-h11"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python3*"
|
|
|
|
}
|
|
|
|
}
|