diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-04-05 11:24:11 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-09 13:56:40 -0300 |
commit | 250d19e2524680ff26f9e360e92c0d831bc934b8 (patch) | |
tree | 59efb8514df0707198fdc5ed4740b50bd9b66712 /testing/py3-cairosvg | |
parent | fb9ead381f0d74656050a5a36f6372f14a4e4319 (diff) | |
download | aports-250d19e2524680ff26f9e360e92c0d831bc934b8.tar.bz2 aports-250d19e2524680ff26f9e360e92c0d831bc934b8.tar.xz |
testing/py3-cairosvg: adopt, upgrade to 2.3.0
Note that this required dropping python2 support and overhauling large
parts of the APKBUILD.
Diffstat (limited to 'testing/py3-cairosvg')
-rw-r--r-- | testing/py3-cairosvg/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py3-cairosvg/APKBUILD b/testing/py3-cairosvg/APKBUILD new file mode 100644 index 0000000000..d544aec52d --- /dev/null +++ b/testing/py3-cairosvg/APKBUILD @@ -0,0 +1,38 @@ +# Maintainer: Drew DeVault <sir@cmpwn.com> +pkgname=py3-cairosvg +_pyname=CairoSVG +pkgver=2.3.0 +pkgrel=0 +pkgdesc="Cairo-based SVG renderer for python" +url="http://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" +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" + +prepare() { + cd "$builddir" + sed -i setup.cfg -e 's/--flake8//' -e 's/--isort//' +} + +build() { + cd "$builddir" + python3 setup.py build +} + +check() { + cd "$builddir" + pytest-3 +} + +package() { + mkdir -p "$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="099da421f3e3bd8b1aaf727bffe388ed08b36eb027a79e31d2fae74fe67adcb8c174763ae2bae49715369a5ab44aea1d3f50bd64895a6aac6740ddf8bebbdc54 CairoSVG-2.3.0.tar.gz" |