~dricottone/huttese-apk

46a8fb47ee14bb755bc9ef3eb47f338cac97d1b6 — Drew DeVault 3 years ago f852eeb
py3-weasyprint: python 3.9 fixes
1 files changed, 6 insertions(+), 1 deletions(-)

M sr.ht/py3-weasyprint/APKBUILD
M sr.ht/py3-weasyprint/APKBUILD => sr.ht/py3-weasyprint/APKBUILD +6 -1
@@ 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
}