~dricottone/huttese-apk

ref: 4bbaacb863e59dee26ad09e129e623209fd7fe93 huttese-apk/sr.ht/py3-weasyprint/APKBUILD -rw-r--r-- 1.4 KiB
4bbaacb8 — Simon Ser soju: upgrade 2 years ago
                                                                                
f80dffa9 Drew DeVault
468c6027 Drew DeVault
a8935f96 Drew DeVault
22b92fa6 Drew DeVault
f80dffa9 Drew DeVault
468c6027 Drew DeVault
31fcc5d9 Drew DeVault
1f7fe4b1 Drew DeVault
f80dffa9 Drew DeVault
f569ac04 Drew DeVault
f80dffa9 Drew DeVault
22b92fa6 Drew DeVault
f80dffa9 Drew DeVault
f569ac04 Drew DeVault
8dc39afe Drew DeVault
f569ac04 Drew DeVault
f80dffa9 Drew DeVault
f569ac04 Drew DeVault
f80dffa9 Drew DeVault
f569ac04 Drew DeVault
f80dffa9 Drew DeVault
f569ac04 Drew DeVault
f80dffa9 Drew DeVault
468c6027 Drew DeVault
a8935f96 Drew DeVault
468c6027 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-weasyprint
_pyname=weasyprint
pkgver=54.3
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 py3-fonttools py3-pydyf py3-html5lib
	py3-pillow
"
makedepends="py3-setuptools pyproject2setuppy"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-pytest-isort
	py3-pytest-flake8
	py3-pytest-runner
	ghostscript
"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # shit's broke

prepare() {
	# Here's a cool idea: let's add a style linter to our test suite, then ship
	# releases with style errors so that our release tarballs have failing
	# tests! Brilliant!
	sed -i pyproject.toml -e 's/--isort//'
	for mod in formatting_structure text
	do
		touch weasyprint/$mod/__init__.py
	done
}

build() {
	python3 -m pyproject2setuppy.main build
}

check() {
	python3 -m pytest
}

package() {
	python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir"
}

sha512sums="
4b11a2fedb2ae41b0752093a9af26c23122337ade0289e36045c2e666677f2234c43f27f12d22d571365294705458c7b34f8b2656ab3d9337f145d5b0292e92b  weasyprint-54.3.tar.gz
"