Date: Thursday, May 23, 2019 @ 14:19:07 Author: alucryd Revision: 469386
add hypercorn Added: hypercorn/ hypercorn/trunk/ hypercorn/trunk/PKGBUILD ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Added: hypercorn/trunk/PKGBUILD =================================================================== --- hypercorn/trunk/PKGBUILD (rev 0) +++ hypercorn/trunk/PKGBUILD 2019-05-23 14:19:07 UTC (rev 469386) @@ -0,0 +1,49 @@ +# Maintainer: Maxime Gauduin <[email protected]> + +pkgname=hypercorn +pkgver=0.6.0 +pkgrel=1 +pkgdesc='An ASGI Server based on Hyper libraries and inspired by Gunicorn' +url=https://gitlab.com/pgjones/hypercorn +arch=(any) +license=(MIT) +depends=( + python-h11 + python-h2 + python-toml + python-wsproto +) +makedepends=( + git + python-hypothesis + python-pytest + python-pytest-asyncio + python-setuptools + python-trio +) +optdepends=( + 'python-trio: trio support' +) +source=(git+https://gitlab.com/pgjones/hypercorn.git#tag=${pkgver}) +sha256sums=(SKIP) + +build() { + cd hypercorn + + python setup.py build +} + +check() { + cd hypercorn + + python setup.py test +} + +package() { + cd hypercorn + + python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/hypercorn/ +} + +# vim:set ts=2 sw=2 et:
