# Maintainer: Thomas Liske pkgname=py3-pyroute2 _pkgname=pyroute2 pkgver=0.5.12 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="a4374affe4b0591bed53f985f197aea1644038aebd91797c61b905557903b21af7ddf9a31b233b9d89ed0261d0ac4a67b34728ea07ab7eb773552855aa0a59b9 pyroute2-0.5.12.tar.gz"