[arch-commits] Commit in python-pygal/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Wed Dec 1 16:17:22 UTC 2021
Date: Wednesday, December 1, 2021 @ 16:17:22
Author: felixonmars
Revision: 1060607
archrelease: copy trunk to community-staging-any
Added:
python-pygal/repos/community-staging-any/
python-pygal/repos/community-staging-any/PKGBUILD
(from rev 1060606, python-pygal/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-pygal/repos/community-staging-any/PKGBUILD (from rev 1060606, python-pygal/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-01 16:17:22 UTC (rev 1060607)
@@ -0,0 +1,42 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Chris Warrick <aur at chriswarrick.com>
+
+pkgname=python-pygal
+epoch=1
+pkgver=2.4.0
+pkgrel=9
+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')
+makedepends=('python-pytest-runner')
+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"
+ $pkgname-pytest-fix.patch::https://github.com/Kozea/pygal/commit/19e5399be18a.patch)
+md5sums=('5c688d30f8e75dced194bfa612f45589'
+ '5ca054e5420b1c242d8706f4258ca382')
+
+prepare() {
+ sed -i 's/\[pytest\]/[tool:pytest]/' pygal-$pkgver/setup.cfg
+ patch -Np1 -d pygal-$pkgver <$pkgname-pytest-fix.patch
+}
+
+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