aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ncclient/APKBUILD
blob: 92fc6f0f54cbc60521bfc4bbbc9889adeb360e79 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: 
pkgname=py3-ncclient
_pkgname=ncclient
pkgver=0.6.6
pkgrel=0
pkgdesc="Library for NETCONF clients"
url="https://github.com/ncclient/ncclient"
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="6f01b4f4754803a41997b9e1e363488885a4d827b08016bf1bcf0ffe43573f3e83a5a7ee769509272901d0597daeb37e11d5a176b2e3961dd441129fe128b7d6  ncclient-0.6.6.tar.gz"