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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:48:59 UTC 2020


    Date: Monday, November 9, 2020 @ 16:48:58
  Author: felixonmars
Revision: 747561

archrelease: copy trunk to community-staging-any

Added:
  python-h2/repos/community-staging-any/
  python-h2/repos/community-staging-any/PKGBUILD
    (from rev 747558, python-h2/trunk/PKGBUILD)

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

Copied: python-h2/repos/community-staging-any/PKGBUILD (from rev 747558, python-h2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:48:58 UTC (rev 747561)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-h2
+pkgver=3.2.0
+pkgrel=3
+pkgdesc="HTTP/2 State-Machine based protocol implementation"
+arch=('any')
+license=('MIT')
+url="https://hyper.rtfd.org"
+depends=('python-hpack' 'python-hyperframe')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz")
+sha512sums=('103a4ea2cd29037ce03ae676864125b4111c7d31a82bbbe7028557da886d88fb5363d885f08d5d3f68dfa29013b7b03350cc0cb4d9dddf32735e98dae5d7fc7c')
+
+build() {
+  cd hyper-h2-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd hyper-h2-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd hyper-h2-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list