aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-zeroconf/APKBUILD
blob: eb214057682c41cde5234a56670d8cf410794786 (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.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"
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="cafb3349bdc49098ac05b3518d1545ff25a7393e1fc0afd259de322109d182cad6fa1a0ba62dad4f25eea9ff6a7436fabe2d713beb24cde3b834c64d682c117e  zeroconf-0.28.5.tar.gz"