1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/py3-svglib: new aport

https://github.com/deeplook/svglib
pure python library for reading and converting SVG
This commit is contained in:
Marian Buschsieweke 2025-06-08 14:26:36 +02:00 committed by omni
parent cb2369b1f0
commit 3bd9c11fe8

View file

@ -0,0 +1,54 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-svglib
_pkgname=svglib
pkgver=1.5.1
pkgrel=0
pkgdesc="pure python library for reading and converting SVG"
url="https://github.com/deeplook/svglib"
# x86: segfaults during test in lxml
arch="noarch !x86"
license="MIT"
depends="
py3-lxml
py3-reportlab
py3-tinycss2
py3-cssselect2
"
makedepends="
py3-setuptools
py3-wheel
py3-gpep517
"
checkdepends="
py3-flake8
py3-pytest
"
subpackages="
$pkgname-doc
$pkgname-pyc
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/deeplook/svglib/archive/refs/tags/v$pkgver.tar.gz
"
builddir="$srcdir"/$_pkgname-$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 --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="
5cd93db39078c7598a51e08afee08b689c4c95e5ac6340d1a51f85b6459fa4635b8edf45add3b39d0a079f0177a99b3d4786e40fb6276aa5ba80c9b5513e6d4c py3-svglib-1.5.1.tar.gz
"