void-packages/srcpkgs/python3-websocket-client/template

30 lines
918 B
Bash

# Template file for 'python3-websocket-client'
pkgname=python3-websocket-client
version=0.57.0
revision=1
wrksrc="websocket_client-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-six ca-certificates"
checkdepends="python3-pytest python3-six"
short_desc="WebSocket client for Python3"
maintainer="Sergi Alvarez <pancake@nopcode.org>"
license="BSD-3-Clause"
homepage="https://github.com/websocket-client/websocket-client"
changelog="https://raw.githubusercontent.com/websocket-client/websocket-client/master/ChangeLog"
distfiles="${PYPI_SITE}/w/websocket-client/websocket_client-${version}.tar.gz"
checksum=d735b91d6d1692a6a181f2a8c9e0238e5f6373356f561bb9dc4c7af36f452010
alternatives="websocket-client:wsdump:/usr/bin/wsdump.py"
do_check() {
python3 -m pytest
}
pre_build() {
vsed -i "s|'backports.ssl_match_hostname'||" setup.py
}
post_install() {
vlicense LICENSE
}