[arch-commits] Commit in python-pygal/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Nov 10 04:03:59 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:03:59
Author: foutrelis
Revision: 748430
archrelease: copy trunk to community-staging-any
Added:
python-pygal/repos/community-staging-any/
python-pygal/repos/community-staging-any/PKGBUILD
(from rev 748428, python-pygal/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-pygal/repos/community-staging-any/PKGBUILD (from rev 748428, python-pygal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-10 04:03:59 UTC (rev 748430)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgname=python-pygal
+epoch=1
+pkgver=2.4.0
+pkgrel=7
+pkgdesc='A Python SVG graph plotting library'
+arch=('any')
+url='https://www.pygal.org/en/stable/'
+license=('LGPL3')
+depends=('python-setuptools')
+optdepends=('python-lxml: for XML output through lxml instead of xml.etree'
+ 'python-cairosvg: for PNG output')
+checkdepends=('python-pytest' 'python-lxml' 'python-pyquery' 'python-cairosvg' 'python-flask')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Kozea/pygal/archive/$pkgver.tar.gz")
+md5sums=('5c688d30f8e75dced194bfa612f45589')
+
+prepare() {
+ sed -i 's/\[pytest\]/[tool:pytest]/' pygal-$pkgver/setup.cfg
+}
+
+build() {
+ cd pygal-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd pygal-$pkgver
+ pytest pygal/
+}
+
+package() {
+ cd pygal-$pkgver
+ python3 setup.py install --root="$pkgdir" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list