mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 12:36:40 +02:00
36 lines
1 KiB
Text
36 lines
1 KiB
Text
# Contributor: lauren n. liberda <lauren@selfisekai.rocks>
|
|
# Maintainer:
|
|
pkgname=octoprint-filecheck
|
|
pkgver=2024.3.27
|
|
pkgrel=1
|
|
pkgdesc="Checks for common issues in uploaded files"
|
|
url="https://github.com/OctoPrint/OctoPrint-FileCheck"
|
|
arch="noarch"
|
|
license="AGPL-3.0-only"
|
|
depends="octoprint"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
options="!check" # no tests
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/OctoPrint/OctoPrint-FileCheck/archive/refs/tags/$pkgver/OctoPrint-FileCheck-$pkgver.tar.gz"
|
|
builddir="$srcdir/OctoPrint-FileCheck-$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="
|
|
5aa5709dabbd8ce7fee1867d6e140f2b2d6bbce15eacb0977d7044e788b9d5db358ea0d6e729c371772605fcf28902be65ffaab050670cbb5d9e9af3596ede17 OctoPrint-FileCheck-2024.3.27.tar.gz
|
|
"
|