# Maintainer: Fabian Affolter pkgname=py3-netdisco _pkgname=netdisco pkgver=2.5.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="7e39d5593310a7a91a608d32efad5af4785d10af6ac453e2cf46f5ef55c2ce830c938d007291d12048cfea489a3fba9b36c4b69730be61c39382a72b7589cdb3 netdisco-2.5.0.tar.gz"