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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 20:17:13 UTC 2019


    Date: Friday, October 25, 2019 @ 20:17:12
  Author: felixonmars
Revision: 519836

archrelease: copy trunk to community-staging-any

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

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

Copied: python-h2/repos/community-staging-any/PKGBUILD (from rev 519834, python-h2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:17:12 UTC (rev 519836)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-h2
+pkgname=('python-h2' 'python2-h2')
+pkgver=3.1.1
+pkgrel=2
+pkgdesc="HTTP/2 State-Machine based protocol implementation"
+arch=('any')
+license=('MIT')
+url="https://hyper.rtfd.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-hpack' 'python2-hpack'
+             'python-hyperframe' 'python2-hyperframe' 'python2-enum34')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-hypothesis'
+              'python2-hypothesis')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/python-hyper/hyper-h2/archive/v$pkgver.tar.gz")
+sha512sums=('153c450ef918cc7cdb5d8efe61692a646925e76e6255ef46f679091590681be7d1f9319b37f6521c56207cf35e7d9e56951e4e3b55a24fe89d9e6aa28591957b')
+
+prepare() {
+  cp -a hyper-h2-$pkgver{,-py2}
+
+  export LC_CTYPE=en_US.UTF-8
+}
+
+build() {
+  cd "$srcdir"/hyper-h2-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/hyper-h2-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/hyper-h2-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/hyper-h2-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-h2() {
+  depends=('python-hpack' 'python-hyperframe')
+
+  cd hyper-h2-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-h2() {
+  depends=('python2-hpack' 'python2-hyperframe' 'python2-enum34')
+
+  cd hyper-h2-$pkgver-py2
+  python2 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