Date: Monday, November 9, 2020 @ 15:57:23 Author: felixonmars Revision: 747262
archrelease: copy trunk to community-staging-any Added: python-waitress/repos/community-staging-any/ python-waitress/repos/community-staging-any/PKGBUILD (from rev 747261, python-waitress/trunk/PKGBUILD) ----------+ PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) Copied: python-waitress/repos/community-staging-any/PKGBUILD (from rev 747261, python-waitress/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2020-11-09 15:57:23 UTC (rev 747262) @@ -0,0 +1,29 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-waitress +pkgver=1.4.4 +pkgrel=3 +pkgdesc="Waitress WSGI server" +arch=('any') +license=('ZPL') +url="https://github.com/Pylons/waitress" +depends=('python-setuptools') +makedepends=('python-setuptools') +checkdepends=('python-pytest-cov' 'python-pytest-runner') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/Pylons/waitress/archive/v$pkgver.tar.gz") +sha512sums=('774fd5c436238a360d116b8683e5be6a4d9e09fcbe3853dea7e803e2c5f309f1d955b4eb9b5fe8c9ec9b8e5363a817e5bc57ca20ba5e5046744338b555dc439a') + +build() { + cd "$srcdir"/waitress-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/waitress-$pkgver + python setup.py pytest +} + +package_python-waitress() { + cd waitress-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 +}