aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ncclient/APKBUILD
blob: 5e20af54d9e5bff87dce97ebdbfea93e6b2347f5 (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
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer:
pkgname=py3-ncclient
_pkgname=ncclient
pkgver=0.6.6
pkgrel=1
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="4a49e9632ac6113ab8c4a51c565696ae4c2bd4f2da982145c8d3f95c5f21f2e2b642516697017ff92e6e07d975c3dc8348788ed628f53fa2afdef04d23be29df  ncclient-0.6.6.tar.gz"