Date: Sunday, April 9, 2023 @ 05:45:51 Author: polyzen Revision: 1443129
archrelease: copy trunk to community-staging-any Added: python-paste/repos/community-staging-any/ python-paste/repos/community-staging-any/PKGBUILD (from rev 1443128, python-paste/trunk/PKGBUILD) ----------+ PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) Copied: python-paste/repos/community-staging-any/PKGBUILD (from rev 1443128, python-paste/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2023-04-09 05:45:51 UTC (rev 1443129) @@ -0,0 +1,34 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: David Campbell <davek...@archlinux.us> +# Contributor: Cilyan Olowen <gak...@gmail.com> + +pkgname=python-paste +pkgver=3.5.2 +pkgrel=2 +pkgdesc="Tools for using a Web Server Gateway Interface stack" +arch=('any') +url="https://pythonpaste.readthedocs.io/" +license=('MIT') +depends=('python-six') +optdepends=('python-flup: WSGI utilities') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-flup') +source=("https://files.pythonhosted.org/packages/source/P/Paste/Paste-${pkgver}.tar.gz") +sha512sums=('a1920dbd7ebea137ca33f8f8c33aad563329d1eea193d84e6aa7fc57690f706c1969e3ba76bbf21a73c59a0fe0f732daa4db15705914ac359814b4332a01bc75') + +build() { + cd Paste-$pkgver + python setup.py build +} + +check() { + cd Paste-$pkgver + PYTHONWARNINGS="ignore::DeprecationWarning" pytest +} + +package() { + cd Paste-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 docs/license.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ +}