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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 21:43:59 UTC 2021


    Date: Tuesday, November 30, 2021 @ 21:43:59
  Author: foutrelis
Revision: 1058983

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pecan/repos/community-staging-any/PKGBUILD (from rev 1058982, python-pecan/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 21:43:59 UTC (rev 1058983)
@@ -0,0 +1,46 @@
+# Maintainer: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+pkgname="python-pecan"
+_pkgname="${pkgname#python-}"
+pkgdesc='A WSGI object-dispatching web framework, designed to be lean and fast with few dependencies.'
+pkgver=1.4.0
+pkgrel=4
+arch=('any')
+url='https://github.com/pecan/pecan'
+license=('BSD')
+depends=('python' 'python-webob' 'python-mako' 'python-webtest' 'python-six'
+         'python-logutils')
+makedepends=('python' 'python-setuptools' 'python-sphinx' 'python-webob'
+             'python-mako' 'python-webtest' 'python-six' 'python-logutils')
+checkdepends=('python-virtualenv' 'python-jinja' 'gunicorn' 'python-mock'
+              'python-sqlalchemy' 'python-genshi' 'python-nine' 'uwsgi'
+              'python-pytest' 'python-kajiki')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('3f7e072b294a732af6ff65621b1e10254260b9d42abd2bc38c3bff8e141b2ae4592567075813faf40227e7f0a3f2893c27270926fcfad18d1cdd9dc8a85bd14e')
+
+prepare(){
+  # fix manpage build
+  sed -i '/^dist = /d' "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py"
+  sed -i "s/^version = release = .*\$/version = release = '${pkgver}'/" "${srcdir}/${_pkgname}-${pkgver}/docs/source/conf.py"
+}
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python ./setup.py build
+}
+
+check() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  # python setup.py test
+  py.test -vvv -s -ra --showlocals --noconftest pecan/tests/
+}
+
+package() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python ./setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+  cd docs
+  PYTHONPATH="${PWD}/../" make man
+  install -D -m644 "./build/man/pecan.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
+}



More information about the arch-commits mailing list