2023-09-30 11:50:38 +00:00

58 lines
1.2 KiB
Plaintext

# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=weasyprint
pkgver=60.1
pkgrel=0
pkgdesc="A visual rendering engine for HTML and CSS that can export to PDF"
url="https://weasyprint.org"
arch="noarch"
license="BSD-3-Clause"
depends="
pango
py3-brotli
py3-cssselect2
py3-cffi
py3-fonttools
py3-html5lib
py3-pillow
py3-pydyf
py3-pyphen
py3-tinycss2
py3-zopfli
"
makedepends="
py3-flit-core
py3-gpep517
"
checkdepends="
font-dejavu
ghostscript
py3-pytest
py3-pytest-cov
py3-pytest-flake8
py3-pytest-isort
py3-pytest-xdist
"
replaces="py-weasyprint py3-weasyprint" # for backward compatibility
provides="py-weasyprint=$pkgver-r$pkgrel py3-weasyprint=$pkgver-r$pkgrel" # for backward compatibility
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest --deselect tests/draw/test_text.py::test_otb_font
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/weasyprint-$pkgver-py3-none-any.whl
}
sha512sums="
7fc05c6c80fc6eb251637b529720794df4b7d5c066ecfb4086cb49b7e1c42a51fcb7b2502a79f9f01f6cc5b83d92d5a48c7386b2db555e7dba6eb64e3151d6ae weasyprint-60.1.tar.gz
"