aports/testing/py3-scour/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

35 lines
958 B
Text

# Contributor: Sertonix <sertonix@posteo.net>
# Maintainer: Sertonix <sertonix@posteo.net>
pkgname=py3-scour
pkgver=0.38.2
pkgrel=1
pkgdesc="SVG Optimizer / Cleaner"
url="https://github.com/scour-project/scour"
arch="noarch"
license="Apache-2.0"
depends="py3-six"
makedepends="py3-gpep517 py3-setuptools py3-wheel py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/scour-project/scour/archive/v$pkgver/py3-scour-$pkgver.tar.gz"
builddir="$srcdir/scour-$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="
a2c418e25283af399be032322b3af0c336c2392ba361681d4b133b64ebc441ac5beeed2b920f42316cef376c971b230681e306687786a875162d33b659d3fdeb py3-scour-0.38.2.tar.gz
"