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

Felix Yan felixonmars at archlinux.org
Mon Nov 4 09:33:19 UTC 2019


    Date: Monday, November 4, 2019 @ 09:33:18
  Author: felixonmars
Revision: 523914

archrelease: copy trunk to community-staging-any

Added:
  python-wsgi-intercept/repos/community-staging-any/
  python-wsgi-intercept/repos/community-staging-any/PKGBUILD
    (from rev 523912, python-wsgi-intercept/trunk/PKGBUILD)

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

Copied: python-wsgi-intercept/repos/community-staging-any/PKGBUILD (from rev 523912, python-wsgi-intercept/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 09:33:18 UTC (rev 523914)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Neil Santos <nsantos16+aur at gmail.com>
+
+_name=wsgi_intercept
+pkgname=python-wsgi-intercept
+pkgver=1.9.0
+pkgrel=2
+pkgdesc='Intercept socket connection to wsgi applications for testing.'
+arch=('any')
+url="https://github.com/cdent/wsgi-intercept"
+license=('MIT')
+depends=('python-six')
+makedepends=('python-setuptools' 'python-sphinx')
+checkdepends=('python-httplib2' 'python-pytest' 'python-requests'
+'python-urllib3')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('be243ff7f961a4bdbd78c50ec23b774093010387231692a472fd40e0dbae0a63f0599a068213b88dd69baf0dee01b7b57d96e3c1db72edbbe3e1725a5f71e819')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+  cd docs
+  make man
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  py.test
+}
+
+package_python-wsgi-intercept() {
+  cd "${_name}-${pkgver}"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
+  install -vDm 644 README -t "${pkgdir}/usr/share/${pkgname}/"
+  install -vDm 644 docs/_build/man/${_name}.1 \
+    -t "${pkgdir}/usr/share/man/man1/"
+}



More information about the arch-commits mailing list