aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-zeroconf/APKBUILD
blob: ff0a64d2f112b960efb2310cbb4b5957bd2537c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-zeroconf
pkgver=0.28.8
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"
replaces="py-zeroconf" # for backwards compatibility
provides="py-zeroconf=$pkgver-r$pkgrel" # for backwards compatibility
depends="py3-ifaddr>=0.1.7 python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/z/zeroconf/zeroconf-$pkgver.tar.gz"
builddir="$srcdir"/zeroconf-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest-3 zeroconf/test* \
		-k 'not (test_integration_with_listener_ipv6 or test_launch)'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="4cf8d2ccdfb280469f7415bacacd942eaa9f533ddceee18a001d2cd0dd9b497b44578e3949e4002e729f54c7fd84a77547c5c850b17159d72189b7b2f5fdf127  zeroconf-0.28.8.tar.gz"