# Maintainer: Drew DeVault pkgname=weasyprint pkgver=54.3 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" # py3-cairocffi 1.2.0-r3 is broken, at least on aarch64 depends=" pango py3-cssselect2 py3-cffi py3-fonttools py3-html5lib py3-pillow py3-pydyf py3-pyphen py3-tinycss2 " makedepends=" py3-build py3-flit py3-installer " checkdepends=" ghostscript py3-pytest py3-pytest-cov py3-pytest-flake8 py3-pytest-isort ttf-dejavu " replaces="py-weasyprint py3-weasyprint" # for backward compatibility provides="py-weasyprint=$pkgver-r$pkgrel py3-weasyprint=$pkgver-r$pkgrel" # for backward compatibility source="https://files.pythonhosted.org/packages/source/w/weasyprint/weasyprint-$pkgver.tar.gz" case "$CARCH" in # 2 test failures x86_64) options="!check";; # Many tests fail s390x) options="!check";; esac build() { python3 -m build --skip-dependency-check --no-isolation --wheel . } check() { pytest } package() { python3 -m installer -d "$pkgdir" --compile-bytecode 0 \ dist/weasyprint-$pkgver-py3-none-any.whl } sha512sums=" 4b11a2fedb2ae41b0752093a9af26c23122337ade0289e36045c2e666677f2234c43f27f12d22d571365294705458c7b34f8b2656ab3d9337f145d5b0292e92b weasyprint-54.3.tar.gz "