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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:22:25 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:22:25
  Author: felixonmars
Revision: 1058137

archrelease: copy trunk to community-staging-any

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

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

Copied: python-h11/repos/community-staging-any/PKGBUILD (from rev 1058132, python-h11/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:22:25 UTC (rev 1058137)
@@ -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=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')
+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