Leo cb1bb3fa35 testing/py3-netdisco: modernize
- Fix license
- Lighten makedepends
- Remove superflous depends
- Enable tests
2019-05-04 20:51:25 +00:00

29 lines
847 B
Plaintext

# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-netdisco
_pkgname=netdisco
pkgver=2.6.0
pkgrel=2
pkgdesc="Python library to scan local network for services and devices"
url="https://github.com/home-assistant/netdisco/"
arch="noarch"
license="Apache-2.0"
depends="py3-zeroconf py3-requests"
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="9892559e6d1f1b84bdb400455c423c9392b0077e56fdbb138f59bfbcc6810a48e2e4698d079316be4bdc9c12d73a7bf97860e5836574f634a1f2700ef7c12771 netdisco-2.6.0.tar.gz"