[arch-commits] Commit in python-jinja/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 14:56:25 UTC 2021


    Date: Tuesday, November 30, 2021 @ 14:56:24
  Author: felixonmars
Revision: 1057766

archrelease: copy trunk to community-staging-any

Added:
  python-jinja/repos/community-staging-any/
  python-jinja/repos/community-staging-any/PKGBUILD
    (from rev 1057765, python-jinja/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: python-jinja/repos/community-staging-any/PKGBUILD (from rev 1057765, python-jinja/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 14:56:24 UTC (rev 1057766)
@@ -0,0 +1,42 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+# Contributor: David Runge <dave at sleepmap.de>
+# Contributor: Peter Baldwin <bald_pete at hotmail.com>
+
+pkgname=python-jinja
+pkgver=3.0.3
+pkgrel=2
+pkgdesc="A simple pythonic template language written in Python"
+arch=('any')
+url="https://palletsprojects.com/p/jinja/"
+license=('BSD')
+depends=('python-setuptools' 'python-markupsafe')
+optdepends=('python-babel: for i18n support')
+checkdepends=('python-pytest')
+source=(https://files.pythonhosted.org/packages/source/J/Jinja2/Jinja2-$pkgver.tar.gz)
+sha256sums=('611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7')
+
+build() {
+  cd Jinja2-$pkgver
+  python3 setup.py build
+}
+
+check() {
+  cd Jinja2-$pkgver
+  # https://github.com/pypa/setuptools/issues/2466
+  PYTHONPATH=build/lib pytest \
+    --deselect tests/test_loader.py::test_package_dir_list \
+    --deselect tests/test_loader.py::test_package_dir_source \
+    --deselect tests/test_loader.py::test_package_file_list \
+    --deselect tests/test_loader.py::test_package_file_source \
+    --deselect tests/test_loader.py::test_package_zip_list \
+    --deselect tests/test_loader.py::test_package_zip_omit_curdir \
+    --deselect tests/test_loader.py::test_package_zip_source
+}
+
+package() {
+  cd Jinja2-$pkgver
+  python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm644 LICENSE.rst -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list