# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-websocket-client pkgver=1.6.1 pkgrel=0 pkgdesc="WebSocket client library for Python" url="https://github.com/websocket-client/websocket-client" arch="noarch" license="Apache-2.0" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends=" py3-python-socks " subpackages="$pkgname-pyc" source="https://github.com/websocket-client/websocket-client/archive/v$pkgver/websocket-client-v$pkgver.tar.gz" builddir="$srcdir/websocket-client-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m unittest discover } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl rm -r "$pkgdir"/usr/lib/python3*/site-packages/websocket/tests } sha512sums=" 0f90549b39a2b02e69eef571a51ea666dba686b56e172c6768b4f1ba68df8d5a3f363a28ec10bb7ce5fb04788ee2f8afe0517312e8cfbcf5395d97acefbb9cf6 websocket-client-v1.6.1.tar.gz "