[arch-commits] Commit in python-mako/repos (staging-any staging-any/PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Tue Nov 30 17:56:11 UTC 2021
Date: Tuesday, November 30, 2021 @ 17:56:11
Author: felixonmars
Revision: 429681
archrelease: copy trunk to staging-any
Added:
python-mako/repos/staging-any/
python-mako/repos/staging-any/PKGBUILD
(from rev 429680, python-mako/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-mako/repos/staging-any/PKGBUILD (from rev 429680, python-mako/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD (rev 0)
+++ staging-any/PKGBUILD 2021-11-30 17:56:11 UTC (rev 429681)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-mako
+pkgver=1.1.6
+pkgrel=2
+pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
+arch=('any')
+url="https://www.makotemplates.org/"
+license=('MIT')
+depends=('python-markupsafe' 'python-beaker' 'python-setuptools')
+checkdepends=('python-pytest' 'python-mock' 'python-babel' 'python-pygments'
+ 'python-dogpile.cache')
+source=("https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz"{,.asc})
+sha512sums=('e87d883d7a549a902bb2e16d20306ccd3dd7b3bf855dfdaff20477dd182a782a5cecbdc447e4b1607f190a7b0febcca001333137f7cac6ffa674824c2a2fd1bb'
+ 'SKIP')
+validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1') # Michael Bayer
+
+prepare() {
+ cd Mako-$pkgver
+ sed -e '/\[tool:pytest\]/a filterwarnings =\n error\n ignore:Creating a LegacyVersion has been deprecated and will be removed in the next major release:DeprecationWarning' \
+ -e 's/-W error//' \
+ -i setup.cfg
+}
+
+build() {
+ cd Mako-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd Mako-$pkgver
+ python -m pytest
+}
+
+package() {
+ cd Mako-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list