From 46a8fb47ee14bb755bc9ef3eb47f338cac97d1b6 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 9 Apr 2021 08:49:50 -0400 Subject: [PATCH] py3-weasyprint: python 3.9 fixes --- sr.ht/py3-weasyprint/APKBUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sr.ht/py3-weasyprint/APKBUILD b/sr.ht/py3-weasyprint/APKBUILD index ee2c02d..889d61a 100644 --- a/sr.ht/py3-weasyprint/APKBUILD +++ b/sr.ht/py3-weasyprint/APKBUILD @@ -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 } -- 2.45.2