@@ 2,7 2,7 @@
pkgname=py3-weasyprint
_pyname=WeasyPrint
pkgver=52.4
-pkgrel=0
+pkgrel=1
pkgdesc="cairo-based HTML renderer for python"
url="https://weasyprint.org"
arch="noarch"
@@ 12,6 12,7 @@ depends="
py3-lxml py3-pdfrw
"
makedepends="py3-setuptools"
+checkdepends="py3-pytest-runner"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
@@ 19,6 20,10 @@ builddir="$srcdir"/$_pyname-$pkgver
replaces="py-weasyprint" # Backwards compat
provides="py-weasyprint=$pkgver-r$pkgrel" # Backwards compat
+prepare() {
+ sed -i setup.cfg -e 's/options.entry_points/entry_points/g'
+}
+
build() {
python3 setup.py build
}