backports/py3-svgpath: build using gpep517
This commit is contained in:
parent
ea2def9dd2
commit
43a45d318c
1 changed files with 8 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue