# Maintainer: Fabian Affolter pkgname=py3-netdisco _pkgname=netdisco pkgver=2.0.0 pkgrel=0 pkgdesc="Python library to scan local network for services and devices" url="https://github.com/home-assistant/netdisco/" arch="noarch" license="Apache-2" # Tests require netlink support which is no present in AL options="!check" depends="py3-zeroconf py3-requests py3-netifaces" makedepends="python3-dev" 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" python3 setup.py test } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="e310fa80414877adeeb77cd66d3fa11b76a41c149a90ac0bed62a98e9d025200170156c6be42a9ee49c921ab8f4afdaceb5ab3b4075b768613f7b38025b75361 netdisco-2.0.0.tar.gz"