diff options
Diffstat (limited to 'testing/py3-netdisco/APKBUILD')
-rw-r--r-- | testing/py3-netdisco/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/py3-netdisco/APKBUILD b/testing/py3-netdisco/APKBUILD new file mode 100644 index 0000000000..edf61b2736 --- /dev/null +++ b/testing/py3-netdisco/APKBUILD @@ -0,0 +1,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" |