~dricottone/huttese-apk

9bd34b857d281e95d8f2905bb8e8bf04658471d1 — Drew DeVault 3 years ago e4cae24
py3-cairosvg: remove; now in alpine community
1 files changed, 0 insertions(+), 34 deletions(-)

D sr.ht/py3-cairosvg/APKBUILD
D sr.ht/py3-cairosvg/APKBUILD => sr.ht/py3-cairosvg/APKBUILD +0 -34
@@ 1,34 0,0 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-cairosvg
_pyname=CairoSVG
pkgver=2.5.1
pkgrel=0
pkgdesc="Cairo-based SVG renderer for python"
url="https://cairosvg.org"
arch="noarch"
license="LGPL-3.0-or-later"
depends="
	python3 py3-tinycss2 py3-cssselect2 py3-defusedxml py3-cairocffi
	py3-webencodings
"
checkdepends="py3-pytest py3-pillow py3-pytest-flake8 py3-pytest-isort"
makedepends="python3-dev py3-setuptools cairo-dev"
_pypiprefix="${_pyname%${_pyname#?}}"
source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/CairoSVG-$pkgver
replaces="py-cairosvg" # Backwards compat
provides="py-cairosvg=$pkgver-r$pkgrel" # Backwards compat

build() {
	python3 setup.py build
}

check() {
	pytest-3 cairosvg/test_api.py
}

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

sha512sums="5f6732758ed8024b58173bc920a44fcafa65a2daf301ee07e088d542f1e82d0093bd853e58da2484c392d1b625fd27c0634d07ad58cf00e674741aa413013605  CairoSVG-2.5.1.tar.gz"