[arch-commits] Commit in python-h2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Feb 18 18:40:46 UTC 2020
Date: Tuesday, February 18, 2020 @ 18:40:45
Author: felixonmars
Revision: 576093
archrelease: copy trunk to community-testing-any
Added:
python-h2/repos/community-testing-any/
python-h2/repos/community-testing-any/PKGBUILD
(from rev 576092, python-h2/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-h2/repos/community-testing-any/PKGBUILD (from rev 576092, python-h2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-02-18 18:40:45 UTC (rev 576093)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-h2
+pkgname=('python-h2' 'python2-h2')
+pkgver=3.2.0
+pkgrel=1
+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=('103a4ea2cd29037ce03ae676864125b4111c7d31a82bbbe7028557da886d88fb5363d885f08d5d3f68dfa29013b7b03350cc0cb4d9dddf32735e98dae5d7fc7c')
+
+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