# Contributor: Aaron Fischer <mail@aaron-fischer.net>
# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Aaron Fischer <mail@aaron-fischer.net>
pkgname=py3-linux-procfs
_name=python-linux-procfs
pkgver=0.7.3
pkgrel=0
pkgdesc="Python classes to extract information from the Linux kernel /proc files."
url="https://git.kernel.org/pub/scm/libs/python/$_name/$_name.git/"
arch="noarch"
license="GPL-2.0-only"
depends="
	python3
	py3-six
	"
makedepends="
	py3-gpep517
	py3-wheel
	py3-setuptools
	py3-installer
	"
subpackages="$pkgname-pyc"
source="$url/snapshot/$_name-$pkgver.tar.gz"
builddir="$srcdir/$_name-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 bitmasklist_test.py
}

package() {
	python3 -m installer -d "$pkgdir" .dist/*.whl
}

sha512sums="
650c4d965177c2422961d7131a77c23af8cf583194d2ddcc0472ee3369978427b8d2f88a0ce6651e1141274a8f56a33adc4ce8b1f20534c737a09a7672b5818d  python-linux-procfs-0.7.3.tar.gz
"
