aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-zeroconf/APKBUILD
blob: 896731e21b70f9990287281854c40cac5e744d09 (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
32
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-zeroconf
_pkgname=zeroconf
pkgver=0.25.0
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"
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="f28669fd4d14f7b7bd162a350483de76d480b2cd393c027d08ef7c413258a6537a7af2d27f009338d808f52258d4e882e32a8239dcc75f11246ff9f60fd6c2a4  zeroconf-0.25.0.tar.gz"