# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-websockets _pkgname=websockets pkgver=4.0.1 pkgrel=0 pkgdesc="An implementation of the WebSocket Protocol (RFC 6455)" url="https://websockets.readthedocs.io" arch="all" license="BSD" options="!check" # tox is in testing makedepends="python3-dev" checkdepends="py3-tox" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" tox } package() { cd "$builddir" python3 setup.py install --root="$pkgdir" --optimize=1 } sha512sums="a60a453f33f1005c7ec7cee10f6ba6cca18628306de51872ad5a910f12f39831049f3a67ff4c3cc62efce47ce030b9e9d075d4418e8da2dcc594b8824ce21dfb websockets-4.0.1.tar.gz"