backports/py3-svgpath: build using gpep517

This commit is contained in:
Antoine Martin 2024-11-01 10:13:13 -04:00
parent 8d51c28255
commit bea9c52c5a
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,8 +1,9 @@
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Aiden Grossman <agrossman154@yahoo.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=py3-svgpath
pkgver=6.3
pkgrel=2
pkgrel=3
pkgdesc="SVG path and object parser"
url="https://github.com/regebro/svg.path"
arch="noarch"
@ -12,7 +13,8 @@ checkdepends="py3-pytest py3-pillow"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/regebro/svg.path/archive/refs/tags/$pkgver.tar.gz
105_use-better-than-nothing-font.patch
no-install-tests.patch"
no-install-tests.patch
"
builddir="$srcdir/svg.path-$pkgver"
build() {
@ -22,7 +24,9 @@ build() {
}
check() {
PYTHONPATH=build/lib pytest
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {