# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. pkgname=py3-ast-monitor pkgver=0.4.0 pkgrel=0 pkgdesc="A wearable Raspberry Pi computer for cyclists" url="https://github.com/firefly-cpp/AST-Monitor" arch="noarch !s390x !riscv64 !armhf !ppc64le" # py3-sport-activities-features # py3-pyqt-feedback-flow license="MIT" depends=" python3 py3-geopy py3-matplotlib py3-pyqt-feedback-flow py3-qt6 py3-qtwebengine py3-sport-activities-features py3-tcxreader " checkdepends="py3-pytest" makedepends="py3-gpep517 py3-poetry-core py3-installer" subpackages="$pkgname-doc $pkgname-pyc" source="https://github.com/firefly-cpp/AST-Monitor/archive/$pkgver/ast_monitor-$pkgver.tar.gz" builddir="$srcdir/AST-Monitor-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl install -Dm644 docs/preprints/2109-13334.pdf -t "$pkgdir"/usr/share/doc/$pkgname } sha512sums=" 441dbc289084b96a491bdd624898551d7ae4cff0a753fcd8f251f43f98e6f99bab7d31791057d87d0c5fc2d78dec327326388a72e8959b0932e810cd495e62a1 ast_monitor-0.4.0.tar.gz "