# Maintainer: pkgname=py3-pydyf _pyname=pydyf pkgver=0.6.0 pkgrel=1 pkgdesc="A low-level PDF generator" url="https://pypi.org/project/pydyf/" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-flit-core py3-gpep517" checkdepends=" ghostscript py3-coverage py3-pillow py3-pytest py3-pytest-cov py3-pytest-flake8 py3-pytest-isort py3-pytest-xdist " _pypiprefix="${_pyname%"${_pyname#?}"}" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" prepare() { default_prepare # If you're going to make your test suite fail on flake8 errors you should # at least run it before you ship a release sed -i pyproject.toml -e 's/ --flake8//' } build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/pydyf-$pkgver-py3-none-any.whl } sha512sums=" 2819aab7b9e72abd02b8658923b595fe0775f341a829b732e1448c02a4aeb8538a7eb5d42307499e255e240c00f8a991687f42122348bcc39e6660c8c27e4f85 pydyf-0.6.0.tar.gz "