aports/testing/octoprint-creality2xfix/APKBUILD
Celeste 4979f32d69 testing/octoprint*: enable on loongarch64
no longer blocked by py3-pydantic
2024-09-03 14:27:56 +00:00

37 lines
1.2 KiB
Plaintext

# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
# Maintainer: lauren n. liberda <lauren@selfisekai.rocks>
pkgname=octoprint-creality2xfix
pkgver=0.0.4
pkgrel=1
pkgdesc="Fixes the temperature reporting from the Creality Ender-3 v2 printer"
url="https://github.com/SimplyPrint/OctoPrint-Creality2xTemperatureReportingFix"
arch="noarch"
license="MIT"
depends="octoprint"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
options="!check" # no tests
subpackages="$pkgname-pyc"
source="https://github.com/SimplyPrint/OctoPrint-Creality2xTemperatureReportingFix/archive/refs/tags/$pkgver/OctoPrint-Creality2xTemperatureReportingFix-$pkgver.tar.gz"
builddir="$srcdir/OctoPrint-Creality2xTemperatureReportingFix-$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="
7ef05e9e8cc4482f815ebbc5d58abb8569a5249ed38382838048ba72e7575aa47e84120bbb9d85ac06c2914702dabecb141e124fd50cf0bb805e2b5de790a35f OctoPrint-Creality2xTemperatureReportingFix-0.0.4.tar.gz
"