# Contributor: Leo # Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-websockets _pkgname=websockets pkgver=11.0.3 pkgrel=0 pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)" options="net" url="https://websockets.readthedocs.io/" arch="all" license="BSD-3-Clause" makedepends=" py3-gpep517 py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/aaugustin/websockets/archive/$pkgver.tar.gz skip-reconnect-test.patch " builddir="$srcdir"/$_pkgname-$pkgver options="!check" # fail for now with context manager errors build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=30 python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 37a84d7c57da7a3e48870abf992ba96ee454b342610d51c06f7dfc7ee082b7fb51304518c208379c3dbd039eafb1a85444c257fed20b4605a52dc8fc938a4cca py3-websockets-11.0.3.tar.gz 0849fa337f6a00297774cc3a3dd61497bbc99dc3b12632a385056a82e50fd04bf057068eeef6f9b705c257e3017b127ee38183461615d09549145889767bdc0b skip-reconnect-test.patch "