~dricottone/huttese-apk

ref: fdcc03158a8727f6f58854fbdaf8e1fa67b55286 huttese-apk/sr.ht/py3-weasyprint/APKBUILD -rw-r--r-- 1.0 KiB
fdcc0315 — Drew DeVault py3-kombu: "upgrade" to 5.2.0 3 years ago
                                                                                
f80dffa9 Drew DeVault
0cc9ee67 Drew DeVault
0c937684 Drew DeVault
f80dffa9 Drew DeVault
46a8fb47 Drew DeVault
f80dffa9 Drew DeVault
46a8fb47 Drew DeVault
f80dffa9 Drew DeVault
0cc9ee67 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
35
36
37
38
39
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-weasyprint
_pyname=WeasyPrint
pkgver=52.5
pkgrel=2
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"
checkdepends="py3-pytest-runner"
_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

prepare() {
	sed -i setup.cfg -e 's/options.entry_points/entry_points/g'
}

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="0ce86db000adef95fabfb335c069ad2a602ed98056219cedde905c550b04b10b0881d72fbdd38a48fae4e263825f5fbd8a70ce13932083afb8930eacc5817fb5  WeasyPrint-52.5.tar.gz"