From f759811746701636ca61d84f88bf86f54e92d48e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 30 Jun 2019 14:38:06 -0400 Subject: [PATCH] py3-cairosvg: import from testing, update --- sr.ht/py3-cairosvg/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sr.ht/py3-cairosvg/APKBUILD diff --git a/sr.ht/py3-cairosvg/APKBUILD b/sr.ht/py3-cairosvg/APKBUILD new file mode 100644 index 0000000..917c18c --- /dev/null +++ b/sr.ht/py3-cairosvg/APKBUILD @@ -0,0 +1,31 @@ +# Maintainer: Drew DeVault +pkgname=py3-cairosvg +_pyname=CairoSVG +pkgver=2.4.0 +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" +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 +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="07eeaffa584b1c40c88c3d287b041c3f097700e49b8d85ba80e8dbc1f27aee6e5cf488db0174fc72783a727c29b6b578b1ff31d86833723681cc7fb084226c46 CairoSVG-2.4.0.tar.gz" -- 2.45.2