From 468c60274c5425c440aa1905568f3ae47a0c38e7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 16 Nov 2021 09:06:35 +0100 Subject: [PATCH] py3-weasyprint: add missing dependencies --- sr.ht/py3-pydyf/APKBUILD | 39 +++++++++++++++++++++++++++++++++++ sr.ht/py3-weasyprint/APKBUILD | 21 +++++++------------ 2 files changed, 47 insertions(+), 13 deletions(-) create mode 100644 sr.ht/py3-pydyf/APKBUILD diff --git a/sr.ht/py3-pydyf/APKBUILD b/sr.ht/py3-pydyf/APKBUILD new file mode 100644 index 0000000..250dcd8 --- /dev/null +++ b/sr.ht/py3-pydyf/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Drew DeVault +pkgname=py3-pydyf +_pyname=pydyf +pkgver=0.1.2 +pkgrel=0 +pkgdesc="A low-level PDF generator" +url="https://pypi.org/project/pydyf/" +arch="noarch" +license="BSD" +depends="python3" +checkdepends=" + py3-pytest py3-pytest-flake8 py3-pytest-isort py3-pytest-cov py3-coverage + py3-pillow +" +_pypiprefix="${_pyname%${_pyname#?}}" +source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" + +prepare() { + # If you're going to make your test suite fail on flake8 errors you should + # at least run it before you ship a release + sed -i pyproject.toml -e 's/ --flake8//' +} + +build() { + python3 setup.py build +} + +check() { + pytest +} + +package() { + python3 setup.py install --root="$pkgdir" --optimize=1 +} + +sha512sums=" +0054791c92c86c188c6a70cfe83831319cd1a587f48ba4b8bd212af178bae24611815b5436699ea6d17fe1b39115a666b30a7982ac35e54ce1d52f34612c9729 pydyf-0.1.2.tar.gz +" diff --git a/sr.ht/py3-weasyprint/APKBUILD b/sr.ht/py3-weasyprint/APKBUILD index b48502c..f2a11bd 100644 --- a/sr.ht/py3-weasyprint/APKBUILD +++ b/sr.ht/py3-weasyprint/APKBUILD @@ -1,15 +1,15 @@ # Maintainer: Drew DeVault pkgname=py3-weasyprint -_pyname=WeasyPrint -pkgver=52.5 -pkgrel=2 +_pyname=weasyprint +pkgver=53.4 +pkgrel=1 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 + pango cairo py3-cairocffi py3-cairosvg py3-cssselect2 py3-tinycss2 + py3-pyphen py3-lxml py3-pdfrw py3-fonttools py3-pydyf " makedepends="py3-setuptools" checkdepends="py3-pytest-runner" @@ -17,13 +17,6 @@ _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 } @@ -36,4 +29,6 @@ package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } -sha512sums="0ce86db000adef95fabfb335c069ad2a602ed98056219cedde905c550b04b10b0881d72fbdd38a48fae4e263825f5fbd8a70ce13932083afb8930eacc5817fb5 WeasyPrint-52.5.tar.gz" +sha512sums=" +7fcdedbecfa13434217b08491db62b9afd3e716d4ac6378490a04120c407ab1b20883227c32a77c9bd8c8dd7324fb505920264db3c9105d712fa4d7dcf3a1578 weasyprint-53.4.tar.gz +" -- 2.45.2