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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 16:00:22 UTC 2020


    Date: Monday, November 9, 2020 @ 16:00:21
  Author: felixonmars
Revision: 747298

archrelease: copy trunk to community-staging-any

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

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

Copied: python-hpack/repos/community-staging-any/PKGBUILD (from rev 747295, python-hpack/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 16:00:21 UTC (rev 747298)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-hpack
+pkgver=3.0.0
+pkgrel=5
+pkgdesc="Pure-Python HPACK header compression"
+arch=('any')
+url="https://hyper.rtfd.org/"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hpack/archive/v$pkgver.tar.gz"
+        $pkgname-pytest-5.patch::https://github.com/python-hyper/hpack/commit/97207a9e88f906cf8e4198aec20b24ef97764486.patch)
+sha512sums=('7b9cf5e643dff2a6454bfe419b797c8ed1a0fe6ec3b725d2696da5a820ab96fe87a64e600b1831c7024bd82616b155a0aa058301acb32172155b6538ba0a73c6'
+            '04bea1bdf3365d923e3b29492467814219b63ab35beecd8f4e2c2fdb0c482f0aa92a10d83011cae129f574725bff99fb25ad325d151c6888ab8e67b879faa323')
+
+prepare() {
+  patch -d hpack-$pkgver -p1 -i ../$pkgname-pytest-5.patch || :
+}
+
+build() {
+  cd hpack-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd hpack-$pkgver
+  python -m pytest test
+}
+
+package() {
+  cd hpack-$pkgver
+  python setup.py install -O1 --root "$pkgdir"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list