mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
54 lines
1.1 KiB
Text
54 lines
1.1 KiB
Text
# 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
|
|
"
|