# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-zeroconf pkgver=0.47.3 pkgrel=0 pkgdesc="Python implementation of multicast DNS service discovery" url="https://github.com/jstasiak/python-zeroconf" arch="all" license="LGPL-2.0-or-later" replaces="py-zeroconf" # for backwards compatibility provides="py-zeroconf=$pkgver-r$pkgrel" # for backwards compatibility depends="python3 py3-ifaddr" makedepends=" cython py3-gpep517 py3-poetry-core py3-setuptools py3-wheel python3-dev " checkdepends="py3-pytest py3-pytest-cov py3-pytest-asyncio" source="python-zeroconf-$pkgver.tar.gz::https://github.com/jstasiak/python-zeroconf/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir"/python-zeroconf-$pkgver build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages testenv testenv/bin/python3 -m installer dist/*.whl testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ dist/*.whl } sha512sums=" e1435490ba6890d9f0fe8efd7be64f0f9fd20a6ae723b176861865a8a795593db7cd797062f9977a5b1df4107781011d25bdf69dd4cc54dd94ef6e891c425df4 python-zeroconf-0.47.3.tar.gz "