# Contributor: # Maintainer: Natanael Copa pkgname=py3-gunicorn _pkgname=gunicorn pkgver=20.1.0 pkgrel=2 pkgdesc="WSGI HTTP Server for UNIX" url="https://gunicorn.org/" arch="noarch" license="MIT" depends="py3-setuptools" checkdepends="py3-pytest py3-pytest-cov py3-aiohttp py3-gevent" source=" $_pkgname-$pkgver.tar.gz::https://github.com/benoitc/gunicorn/archive/$pkgver.tar.gz revert-log-a-warning-when-a-worker-was-terminated-due-to-a-signal.patch " builddir="$srcdir/$_pkgname-$pkgver" replaces=py-gunicorn # Backwards compatibility provides=py-gunicorn=$pkgver-r$pkgrel # Backwards compatibility prepare() { default_prepare # use installed checkdepends instead of fetching from pypi sed -i \ -e 's/==.*//' \ -e '/cover/d' \ requirements_test.txt } build() { python3 setup.py build } check() { PYTHONPATH=build/lib pytest \ --deselect tests/workers/test_geventlet.py } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums=" 4fd905f62adc30e044cf2a56a1a77e14bc633258267d6bfbd4f6a68494f93f377e9fb9ed94fab7f11f9d7813857a680974a88c4b6bf97d4f1b74792a81810111 gunicorn-20.1.0.tar.gz ca860cfeb75d138f56ed15c74a4c1f521e876fa38b36a0fc3223790323b1a447dcf4a96894ade1cb8b74d90d74b5f5aa4d3907abe169857ece1bef37ffe50218 revert-log-a-warning-when-a-worker-was-terminated-due-to-a-signal.patch "