# Maintainer: Fabian Affolter pkgname=py3-netdisco _pkgname=netdisco pkgver=2.2.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="2ae91a3c06f8760b680959af38d9dbef9cae0fb9a521a06d049ff1e666ec4c2e53a0a3ade6125b785a905b3e42c28ffdaa3cb80e42f2b0ab73e5db91c62eebb2 netdisco-2.2.0.tar.gz"