[arch-commits] Commit in python-h2/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Jan 23 06:31:47 UTC 2019
Date: Wednesday, January 23, 2019 @ 06:31:46
Author: felixonmars
Revision: 427145
archrelease: copy trunk to community-testing-any
Added:
python-h2/repos/community-testing-any/
python-h2/repos/community-testing-any/PKGBUILD
(from rev 427144, python-h2/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: python-h2/repos/community-testing-any/PKGBUILD (from rev 427144, python-h2/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2019-01-23 06:31:46 UTC (rev 427145)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-h2
+pkgname=('python-h2' 'python2-h2')
+pkgver=3.1.0
+pkgrel=1
+pkgdesc="HTTP/2 State-Machine based protocol implementation"
+arch=('any')
+license=('MIT')
+url="http://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=('b24357e22cec849c4050c77488cf9fd6f50fe5091553c3efc5e6d5c719bc15fd1d89bb9fddee06e1b9815c37100d9f5da798921f10887a9f03ec1b9da736ef8d')
+
+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