mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
# Contributor: <xmingske@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=py3-gunicorn
|
|
_pkgname=gunicorn
|
|
pkgver=20.1.0
|
|
pkgrel=1
|
|
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"
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
4fd905f62adc30e044cf2a56a1a77e14bc633258267d6bfbd4f6a68494f93f377e9fb9ed94fab7f11f9d7813857a680974a88c4b6bf97d4f1b74792a81810111 gunicorn-20.1.0.tar.gz
|
|
"
|