aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ncclient/APKBUILD
blob: 04a4b46c0e773fdc29b2f9e06a4af6b1d1fbf491 (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=1
pkgdesc="Library for NETCONF clients"
url="https://github.com/ncclient/ncclient"
# arch="noarch" # NOTE(leo): All builders fail to fetch the tarball, works locally
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"