# Maintainer: Fabian Affolter pkgname=py3-netdisco _pkgname=netdisco pkgver=2.1.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="a2b9c2ff0840e4b139ffbb9bb6a78b203e0a0ebafe839cf659c4507535511e5e3714417574e0d7f4a1f2d4d1b89670c67d75d518638d9ff433b76b4509992bb5 netdisco-2.1.0.tar.gz"