# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-py-cpuinfo _pkgname=py-cpuinfo pkgver=9.0.0 pkgrel=2 pkgdesc="Pure-Python module for getting CPU info" url="https://github.com/workhorsy/py-cpuinfo" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-cpuinfo" # Backwards compatibility provides="py-cpuinfo=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m unittest -k 'not test_actual' } package() { python3 -m installer -d "$pkgdir" \ .dist/py_cpu*.whl } sha512sums=" c7711137d60ad52bcbef8738a70fb48ceaa69e1e1632d135d0ee95c282b02df6170c3dd88a1e14b3e9a386d3286a15ca9722fcfb596107da022161a7cf84509a py-cpuinfo-9.0.0.tar.gz "