# Contributor: Leo # Maintainer: Will Sinatra maintainer="Will Sinatra " pkgname=py3-ufo2ft pkgver=3.4.3 pkgrel=0 pkgdesc="bridge from UFOs to FontTools objects" url="https://github.com/googlefonts/ufo2ft" arch="noarch" license="MIT" depends=" py3-booleanoperations py3-cffsubr py3-fontmath py3-fonttools py3-fs py3-ufolib2 python3 " makedepends=" py3-gpep517 py3-fontmath py3-defcon py3-setuptools py3-setuptools_scm py3-wheel " checkdepends=" py3-compreffor py3-pytest py3-pytest-runner py3-pytest-xdist py3-skia-pathops py3-syrupy " subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/googlefonts/ufo2ft/archive/v$pkgver.tar.gz" builddir="$srcdir/ufo2ft-$pkgver" case "$CARCH" in s390x) options="$options !check" ;; esac build() { SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver \ 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 -n auto -p no:warnings -k \ 'not integration_test and not test_no_contour_glyphs and not kernFeatureWriter2_test' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 4839fd8e30ea7a50859465424e5dfecd60384516cb047f79a63348b49924fc8bf77ebce7732c0b0c4ab602bb73c3ecd88f21604a4737cdeeb1f837c47547ede8 py3-ufo2ft-3.4.3.tar.gz "