[arch-commits] Commit in hypercorn/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Oct 26 04:17:14 UTC 2019


    Date: Saturday, October 26, 2019 @ 04:17:14
  Author: felixonmars
Revision: 519966

archrelease: copy trunk to community-staging-any

Added:
  hypercorn/repos/community-staging-any/
  hypercorn/repos/community-staging-any/PKGBUILD
    (from rev 519963, hypercorn/trunk/PKGBUILD)

----------+
 PKGBUILD |   61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

Copied: hypercorn/repos/community-staging-any/PKGBUILD (from rev 519963, hypercorn/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 04:17:14 UTC (rev 519966)
@@ -0,0 +1,61 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=hypercorn
+pkgver=0.9.0
+pkgrel=2
+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-typing_extensions
+  python-wsproto
+)
+makedepends=(
+  git
+  python-setuptools
+)
+checkdepends=(
+  python-hypothesis
+  python-pytest
+  python-pytest-asyncio
+  python-pytest-sugar
+  python-pytest-trio
+  python-tox
+  python-trio
+)
+optdepends=(
+  'python-trio: trio support'
+)
+source=(git+https://gitlab.com/pgjones/hypercorn.git#tag=271712f8b0f943eb592f79339474a992dbad4d33)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd hypercorn
+
+  git describe --tags
+}
+
+build() {
+  cd hypercorn
+
+  python setup.py build
+}
+
+check() {
+  cd hypercorn
+
+  tox -e py37
+}
+
+package() {
+  cd hypercorn
+
+  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/hypercorn/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list