# Contributor: Leonardo Arena # Maintainer: pkgname=py3-ncclient _pkgname=ncclient pkgver=0.6.7 pkgrel=0 pkgdesc="Library for NETCONF clients" url="https://github.com/ncclient/ncclient" # NOTE(maxice8): All builders fail to fetch it # arch="noarch" license="Apache-2.0" depends="py3-lxml py3-paramiko py3-setuptools py3-six" checkdepends="py3-mock py3-nose" source="$_pkgname-$pkgver.tar.gz::https://github.com/ncclient/ncclient/archive/v$pkgver.tar.gz" builddir="$srcdir"/ncclient-$pkgver replaces="py-ncclient" # Backwards compatibility provides="py-ncclient=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { nosetests } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="d4b9996d849d2ae815d40507cfefe74b6184ca23924773a4340f1be85a3751b0976c38f5091aeb20531037d1274ca35c1d1640c02222842b8197d800a938b71b ncclient-0.6.7.tar.gz"