aports/testing/py3-ppk2-api/APKBUILD
Alistair Francis 02eddba027 testing/py3-ppk2-api: new aport
Signed-off-by: Alistair Francis <alistair@alistair23.me>
2024-11-30 20:51:05 +00:00

39 lines
998 B
Text

# Maintainer: Alistair Francis <alistair@alistair23.me>
pkgname=py3-ppk2-api
_pyname=ppk2-api-python
pkgver=0.9.2
pkgrel=0
pkgdesc="Power Profiling Kit 2 unofficial python api"
url="https://github.com/IRNAS/ppk2-api-python"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="
py3-gpep517
py3-installer
py3-poetry-core
py3-wheel
py3-setuptools
py3-pip
"
checkdepends="py3-pytest py3-setuptools py3-pexpect"
subpackages="$pkgname-pyc"
source="py3-ppk2-api-python-$pkgver.tar.gz::https://github.com/IRNAS/ppk2-api-python/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
# Upstream doesn't have any tests
options="!check"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
9112649fab6d35d9159e0f9f425eff2321241703dc897f450c24ee1a4a3d446825c28f6efd69fda0da88556cbab1350b6156ddd851277d3edb0d5d2a8fd48326 py3-ppk2-api-python-0.9.2.tar.gz
"