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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:39:59 UTC 2020


    Date: Monday, November 9, 2020 @ 15:39:59
  Author: felixonmars
Revision: 747071

archrelease: copy trunk to community-staging-any

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

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

Copied: python-priority/repos/community-staging-any/PKGBUILD (from rev 747070, python-priority/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:39:59 UTC (rev 747071)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-priority
+pkgver=1.3.0
+pkgrel=6
+pkgdesc='A pure-Python implementation of the HTTP/2 priority tree'
+arch=('any')
+license=('MIT')
+url='https://github.com/python-hyper/priority'
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-hypothesis')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/priority/archive/v$pkgver.tar.gz")
+sha512sums=('bd60db8e1f524a2c445227576d53c70dbf5764e9ecb0e75d320e3652941f9e915f9d130815a781a8d4e50c4c3f68e05c9458225926e80d588e210037a1c6ed5f')
+
+build() {
+  cd priority-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd priority-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd priority-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list