mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
29 lines
789 B
Text
29 lines
789 B
Text
# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
|
|
pkgname=py3-pyroute2
|
|
_pkgname=pyroute2
|
|
pkgver=0.5.19
|
|
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"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
|
|
# do not ship cli scripts for now
|
|
rm -rf "${pkgdir:?}/usr/bin"
|
|
}
|
|
|
|
sha512sums="bd60e2adf59b8438ff4f6abf2d41cf18eb60dcef3072577648488db45ffe89bd9c7207c4eccc38eb9256533ea2950e7f20b82ae4940b1207ba71d0f261e83f6d pyroute2-0.5.19.tar.gz"
|