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

Felix Yan felixonmars at gemini.archlinux.org
Thu Dec 2 23:24:43 UTC 2021


    Date: Thursday, December 2, 2021 @ 23:24:43
  Author: felixonmars
Revision: 1062956

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 1062953, python-wsgi-intercept/trunk/PKGBUILD)

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

Copied: python-wsgi-intercept/repos/community-staging-any/PKGBUILD (from rev 1062953, python-wsgi-intercept/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-02 23:24:43 UTC (rev 1062956)
@@ -0,0 +1,42 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# 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.2
+pkgrel=3
+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=('a313fe6302c9f168bd050c83ded1d58ef74feb54870197eb85b3527c2cc77eb76b4ca61ff4b554e13cca10ec7106ad9ba35c9a41a00bbd82ef39a26df2af7769')
+
+build() {
+  cd "${_name}-${pkgver}"
+  python setup.py build
+  cd docs
+  make man
+}
+
+check() {
+  cd "${_name}-${pkgver}"
+  pytest -v
+}
+
+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