# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-hbmqtt _pkgname=hbmqtt pkgver=0.9.5 pkgrel=2 pkgdesc="MQTT client/broker using Python asynchronous I/O" url="https://hbmqtt.readthedocs.io/" arch="noarch" license="MIT" depends="py3-passlib py3-websockets py3-transitions py3-docopt py3-yaml" makedepends="python3-dev py3-setuptools" source="$_pkgname-$pkgver.tar.gz::https://github.com/beerfactory/hbmqtt/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver options="!check" # FIXME: disable tests to unblock builders build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 setup.py test } package() { cd "$builddir" python3 setup.py install --root="$pkgdir" --optimize=1 } sha512sums="39116ada0e267d3a4f336f632862bd4ee621edc18a2a305ffd4f441640c153a6c15246ee37385c913ffc301a66865d8d8d116fef2abad72f81f13bf31da18008 hbmqtt-0.9.5.tar.gz"