Date: Monday, April 10, 2023 @ 11:57:30
Author: felixonmars
Revision: 1444140
archrelease: copy trunk to community-staging-any
Added:
python-h2/repos/community-staging-any/
python-h2/repos/community-staging-any/PKGBUILD
(from rev 1444139, python-h2/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-h2/repos/community-staging-any/PKGBUILD (from rev 1444139,
python-h2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-10 11:57:30 UTC (rev 1444140)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-h2
+pkgver=4.1.0
+pkgrel=2
+pkgdesc="HTTP/2 State-Machine based protocol implementation"
+arch=('any')
+license=('MIT')
+url="https://hyper.rtfd.org"
+depends=('python-hpack' 'python-hyperframe')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-hypothesis')
+source=("https://github.com/python-hyper/h2/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('4e9cf88b3ae702a8a42bded775ad337809787fe8172d501c230d55abbf1edd764acf3b227f2e58756d882499661ffcf6bbdd4812a4d938c04fac3f1aa2390b28')
+
+build() {
+ cd h2-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd h2-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd h2-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}