aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pyroute2/APKBUILD
blob: 84f7bbfba17aad46d22e5bf50a0be3b8d5b4f8fe (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
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2
_pkgname=pyroute2
pkgver=0.5.11
pkgrel=0
pkgdesc="Python Netlink library"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

check() {
	pytest
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# do not ship cli scripts for now
	rm -rf "${pkgdir:?}/usr/bin"
}

sha512sums="38159cb3467711a73742c75154828563681df79dedba040a49fadc11afda5bbae756f724d89905fb24c7ce0d4fa0a6107aac9750586286a15eeffaaa8fa3d6bc  pyroute2-0.5.11.tar.gz"