# Maintainer: Drew DeVault pkgname=py3-weasyprint _pyname=WeasyPrint pkgver=50 pkgrel=1 pkgdesc="cairo-based HTML renderer for python" url="https://weasyprint.org" arch="noarch" license="BSD-3-Clause" depends=" pango cairo py3-cairocffi py3-cairosvg py3-cssselect2 py3-tinycss2 py3-pyphen py3-lxml py3-pdfrw py3-html5lib " makedepends="py3-setuptools" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver replaces="py-weasyprint" # Backwards compat provides="py-weasyprint=$pkgver-r$pkgrel" # Backwards compat build() { python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="b637e97eb26318f7a12e1fecaa1c4683fcc0f6dc61c7d207c71437f322f51a17edab788f4595aa2923691e1bdde18d622073b453f08ee6eef49f9e97a55cc6af WeasyPrint-50.tar.gz"