[arch-commits] Commit in python-h11/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 15:31:51 UTC 2019
Date: Friday, October 25, 2019 @ 15:31:51
Author: foutrelis
Revision: 519076
archrelease: copy trunk to community-staging-any
Added:
python-h11/repos/community-staging-any/
python-h11/repos/community-staging-any/PKGBUILD
(from rev 519075, python-h11/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-h11/repos/community-staging-any/PKGBUILD (from rev 519075, python-h11/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 15:31:51 UTC (rev 519076)
@@ -0,0 +1,52 @@
+# 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=3
+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