diff --git a/python/python-h11/.SRCINFO b/python/python-h11/.SRCINFO new file mode 100644 index 0000000000..2e85a81c00 --- /dev/null +++ b/python/python-h11/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-h11 + pkgdesc = A pure-Python, bring-your-own-I/O implementation of HTTP/1.1 + pkgver = 0.14.0 + pkgrel = 4 + url = https://github.com/python-hyper/h11 + arch = any + license = MIT + checkdepends = python-pytest + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools + depends = python + source = git+https://github.com/python-hyper/h11.git#tag=v0.14.0 + sha512sums = 03286e989f9af9e1fd5b05ae5cd0a6f528d07ff9151d486932ccfa855a083972e1a0ee6ded9072674e447203a3cc60a0bda253b46946e42886344795586485e3 + +pkgname = python-h11 diff --git a/python/python-h11/.nvchecker.toml b/python/python-h11/.nvchecker.toml new file mode 100644 index 0000000000..9a7899b453 --- /dev/null +++ b/python/python-h11/.nvchecker.toml @@ -0,0 +1,3 @@ +[python-h11] +source = "pypi" +pypi = "h11" diff --git a/python/python-h11/PKGBUILD b/python/python-h11/PKGBUILD index 6330b88bc3..f4704f092d 100644 --- a/python/python-h11/PKGBUILD +++ b/python/python-h11/PKGBUILD @@ -5,29 +5,29 @@ pkgname=python-h11 pkgver=0.14.0 -pkgrel=3 +pkgrel=4 pkgdesc="A pure-Python, bring-your-own-I/O implementation of HTTP/1.1" url="https://github.com/python-hyper/h11" license=('MIT') arch=(any) depends=('python') -makedepends=('python-setuptools') +makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools') checkdepends=('python-pytest') -source=("https://pypi.io/packages/source/h/h11/h11-$pkgver.tar.gz") -sha512sums=('6146f6441ce62ea46d824a86c1687401224ea6084ca2703b9c841dce51cdfb5de49b39a4f4a7e95efae40ed83012ea4a8641700281f728c2f580a90ce42d82a5') +source=("git+https://github.com/python-hyper/h11.git#tag=v$pkgver") +sha512sums=('03286e989f9af9e1fd5b05ae5cd0a6f528d07ff9151d486932ccfa855a083972e1a0ee6ded9072674e447203a3cc60a0bda253b46946e42886344795586485e3') build() { - cd h11-$pkgver - python setup.py build + cd h11 + python -m build --wheel --no-isolation } check() { - cd h11-$pkgver + cd h11 pytest } package_python-h11() { - cd h11-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + cd h11 + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/ }