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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:34:36 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:34:35
  Author: felixonmars
Revision: 349028

archrelease: copy trunk to community-staging-any

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

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

Copied: python-h11/repos/community-staging-any/PKGBUILD (from rev 349026, python-h11/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 18:34:35 UTC (rev 349028)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-h11
+pkgname=(python-h11 python2-h11)
+pkgver=0.8.1
+pkgrel=2
+pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+url="https://github.com/njsmith/h11"
+license=('MIT')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz")
+sha512sums=('3310dcd8552de4440ed9669fd37b3fc4d76073a9801decb705bceee3c1e98ff83470bd124ecf36e1ec3457ff2fb4da6f4fbf077daa810c28ab73044dfab709d4')
+
+prepare() {
+  cp -a h11-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/h11-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/h11-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/h11-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/h11-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-h11() {
+  depends=('python')
+
+  cd h11-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-h11() {
+  depends=('python2')
+
+  cd h11-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list