aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-netdisco/APKBUILD
blob: edf61b2736649a143979de8e6379d73dc6f4665e (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
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-netdisco
_pkgname=netdisco
pkgver=2.0.0
pkgrel=0
pkgdesc="Python library to scan local network for services and devices"
url="https://github.com/home-assistant/netdisco/"
arch="noarch"
license="Apache-2"
# Tests require netlink support which is no present in AL
options="!check"
depends="py3-zeroconf py3-requests py3-netifaces"
makedepends="python3-dev"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
        cd "$builddir"
        python3 setup.py test
}

package() {
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="e310fa80414877adeeb77cd66d3fa11b76a41c149a90ac0bed62a98e9d025200170156c6be42a9ee49c921ab8f4afdaceb5ab3b4075b768613f7b38025b75361  netdisco-2.0.0.tar.gz"