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

Felix Yan felixonmars at archlinux.org
Sun Jan 10 04:29:50 UTC 2021


    Date: Sunday, January 10, 2021 @ 04:29:50
  Author: felixonmars
Revision: 816932

archrelease: copy trunk to community-testing-any

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

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

Copied: python-h11/repos/community-testing-any/PKGBUILD (from rev 816928, python-h11/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-01-10 04:29:50 UTC (rev 816932)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-h11
+pkgver=0.12.0
+pkgrel=1
+pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+url="https://github.com/njsmith/h11"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz")
+sha512sums=('ba2a2c185af270185ba5e1fd80ec9308e35afcd60a125a77cbeae2669f462983d063339371312f154a7c80c154ac97796ab36782b36549235435dcfd81b93421')
+
+build() {
+  cd "$srcdir"/h11-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/h11-$pkgver
+  python setup.py pytest
+}
+
+package_python-h11() {
+  cd h11-$pkgver
+  python 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