[arch-commits] Commit in python-wsgi-intercept/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Thu Nov 12 17:34:41 UTC 2020
Date: Thursday, November 12, 2020 @ 17:34:41
Author: foutrelis
Revision: 752679
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 752678, python-wsgi-intercept/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-wsgi-intercept/repos/community-staging-any/PKGBUILD (from rev 752678, python-wsgi-intercept/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-12 17:34:41 UTC (rev 752679)
@@ -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=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=('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