# Maintainer: Drew DeVault pkgname=py3-pydyf _pyname=pydyf pkgver=0.5.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#?}"}" 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=" fd14aa4a06fdc3c6c883d32471d94f49deac9d8f774f79a9ed35c1e57a50369eac6d8aca91f71a98af9d71636fa58ff5a33d5c1d1d4289518be33a2f224275bd pydyf-0.5.0.tar.gz "