aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-weasyprint/APKBUILD
blob: f7a79269556a9eb417a684cb75b74dfc5cfc6915 (plain)
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=52.4
pkgrel=2
pkgdesc="A visual rendering engine for HTML and CSS that can export to PDF"
url="https://weasyprint.org"
arch="noarch"
license="BSD-3-Clause"
depends="cairo
	pango
	py3-cairocffi
	py3-cairosvg
	py3-cssselect2
	py3-cffi
	py3-html5lib
	py3-lxml
	py3-pdfrw
	py3-pillow
	py3-pyphen
	py3-tinycss2
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-pytest-runner
	ttf-dejavu
	"
makedepends="py3-setuptools"
replaces="py-weasyprint"  # for backward compatibility
provides="py-weasyprint=$pkgver-r$pkgrel"  # for backward compatibility
source="https://files.pythonhosted.org/packages/source/W/$_pyname/$_pyname-$pkgver.tar.gz
	fix-pango-update-font-map.patch
	disable-flake8-isort-for-pytest.patch
	dont-install-tests.patch
	"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="0003f9b46452e60118e7f6944f0bf48b6f548814dae10f990bedb124d3c67d9c530c30ee142d416f448b3b479f54b4fcdf01e31747957438192c77031926cb8c  WeasyPrint-52.4.tar.gz
9c1c75c7eaaa9e3ded23950760bc94fc98881c10c1cb4e3e46a299cd3f26221d5350535eefff2969624954a069c22799604f7e3433fbe97f381274a65392d415  fix-pango-update-font-map.patch
39cd6c96804977913e2f83a1f1b6f606c54ed68eeb7c3aa08dfecf33a725b840a6234f6635a2eea6dc4af61818222b6a08eb745f6b37c73c80c3923d7ebcd30a  disable-flake8-isort-for-pytest.patch
f3477df116105c993330359cff9076e75b385a8f88addb85b2a03977d5e2c709ac46355bff555a296a8cb674a1e22f377090a413491f41cb6d40c80ab17f72cc  dont-install-tests.patch"