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

Felix Yan felixonmars at archlinux.org
Tue Feb 18 18:42:12 UTC 2020


    Date: Tuesday, February 18, 2020 @ 18:42:11
  Author: felixonmars
Revision: 576097

archrelease: copy trunk to community-testing-any

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

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

Copied: python-h11/repos/community-testing-any/PKGBUILD (from rev 576096, python-h11/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2020-02-18 18:42:11 UTC (rev 576097)
@@ -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.9.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=('fb323ebf0cc95d89bb7e73cf1f393d2588961ed6dd95630ad692e36f15141ae1de7a0bfe3ef2855f0e9b7c8cf2abba5cf808547bb4bb4d10ebb525122ac63d4a')
+
+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