aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ncclient/APKBUILD
blob: 70770a9cbc16bd92b9d67ed030d98a37b9d87413 (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.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"