Skip to content
Snippets Groups Projects
Commit 6eef296b authored by alice's avatar alice Committed by alice
Browse files

community/py3-pydyf: new aport

https://pypi.org/project/pydyf/
A low-level PDF generator
parent 083ef2bd
No related branches found
No related tags found
1 merge request!31319community/weasyprint: upgrade to 54.1
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-pydyf
_pyname=pydyf
pkgver=0.1.2
pkgrel=0
pkgdesc="A low-level PDF generator"
url="https://pypi.org/project/pydyf/"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
checkdepends="
ghostscript
py3-coverage
py3-pillow
py3-pytest
py3-pytest-cov
py3-pytest-flake8
py3-pytest-isort
"
_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() {
python3 setup.py build
}
check() {
pytest
}
package() {
python3 setup.py install --root="$pkgdir" --optimize=1
}
sha512sums="
0054791c92c86c188c6a70cfe83831319cd1a587f48ba4b8bd212af178bae24611815b5436699ea6d17fe1b39115a666b30a7982ac35e54ce1d52f34612c9729 pydyf-0.1.2.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment