~dricottone/huttese-apk

ref: a3dfe41aabc874bc239e3eea79fd80631af215d2 huttese-apk/sr.ht/py3-weasyprint/APKBUILD -rw-r--r-- 954 bytes
a3dfe41a — Drew DeVault py3-stripe: upgrade to 2.55.1 4 years ago
                                                                                
f80dffa9 Drew DeVault
f761f2c7 Drew DeVault
dbd6c8f6 Drew DeVault
f80dffa9 Drew DeVault
f761f2c7 Drew DeVault
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-weasyprint
_pyname=WeasyPrint
pkgver=52.1
pkgrel=0
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
"
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="3c2a4ade455ee453f9618bed85390ce664ceb609b2a3af0e1befa0038cbd36b32a314287118cdb07abb454f5f09f1eda1ca9b42266b4b627b714306dd60e97e3  WeasyPrint-52.1.tar.gz"