# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-zeroconf _pkgname=zeroconf pkgver=0.24.5 pkgrel=0 pkgdesc="A Python implementation of multicast DNS service discovery" url="https://github.com/jstasiak/python-zeroconf" arch="noarch" license="LGPL-2.0-or-later" # Tests require netlink support which is no present in AL replaces="py-zeroconf" # for backwards compatibility provides="py-zeroconf=$pkgver-r$pkgrel" # for backwards compatibility options="!check" depends="python3 py3-six py3-netifaces py3-ifaddr" makedepends="py3-setuptools python3-dev" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="9a3527128dbb7371c2cd24f4f97c08041e84bd5aa32fc20a6f36bb55163c7532091c85c4715c5260811522a56bb3e1e3576a8a4220982e87952acb34c7f33a72 zeroconf-0.24.5.tar.gz"