mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-13 02:36:34 +02:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
# Maintainer:
|
|
pkgname=octoprint-pisupport
|
|
pkgver=2023.10.10
|
|
pkgrel=1
|
|
pkgdesc="OctoPrint plugin that provides additional information about your Pi in the UI"
|
|
url="https://github.com/OctoPrint/OctoPrint-PiSupport"
|
|
arch="noarch"
|
|
license="AGPL-3.0-only"
|
|
depends="octoprint"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-ddt py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/OctoPrint/OctoPrint-PiSupport/archive/refs/tags/$pkgver/OctoPrint-PiSupport-$pkgver.tar.gz"
|
|
builddir="$srcdir/OctoPrint-PiSupport-$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
|
|
}
|
|
|
|
sha512sums="
|
|
ecc5f323efccfe3d7ebc2d57c47799bdac589fe2edbdceb4f162aa82453335b0a0a6d4e62bfb28f3b288b152a251c05b5f09559b43b43ba46ba1eb0935b2987f OctoPrint-PiSupport-2023.10.10.tar.gz
|
|
"
|