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

Felix Yan felixonmars at archlinux.org
Thu Aug 13 13:59:00 UTC 2020


    Date: Thursday, August 13, 2020 @ 13:59:00
  Author: felixonmars
Revision: 677315

archrelease: copy trunk to community-testing-any

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

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

Copied: python-h11/repos/community-testing-any/PKGBUILD (from rev 677314, python-h11/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-08-13 13:59:00 UTC (rev 677315)
@@ -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.10.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=('c5f6271002d3c9423d6587a1050279d4cb25c6f1a0fee87f8f01c5dbd02b4c4817f1a6b7ea0b92c49a45a1f05a7073c6f4953c9d61d29e341fdd8b0a5f40a0b4')
+
+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