# Contributor: Fabian Affolter maintainer="fossdd " pkgname=py3-zeroconf pkgver=0.147.0 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 py3-pytest-codspeed" subpackages="$pkgname-pyc" 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=" d2d3a6aadd4b74bbb1c04942a0716d1f07e231504ce33da6053f0792da29286edf1849fc6748f2a8972bcfa6b5fe45e4ded5f4018cccfc074430396ffeaeb5dc python-zeroconf-0.147.0.tar.gz "