[arch-commits] Commit in (4 files)
David Runge
dvzrv at gemini.archlinux.org
Thu Jul 21 09:49:52 UTC 2022
Date: Thursday, July 21, 2022 @ 09:49:52
Author: dvzrv
Revision: 1254985
Add python-requests-wsgi-adapter as checkdepends for python-unearth.
Added:
python-requests-wsgi-adapter/
python-requests-wsgi-adapter/repos/
python-requests-wsgi-adapter/trunk/
python-requests-wsgi-adapter/trunk/PKGBUILD
----------+
PKGBUILD | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
Added: python-requests-wsgi-adapter/trunk/PKGBUILD
===================================================================
--- python-requests-wsgi-adapter/trunk/PKGBUILD (rev 0)
+++ python-requests-wsgi-adapter/trunk/PKGBUILD 2022-07-21 09:49:52 UTC (rev 1254985)
@@ -0,0 +1,40 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=requests-wsgi-adapter
+pkgname=python-requests-wsgi-adapter
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="WSGI Transport Adapter for Requests"
+arch=(any)
+url="https://github.com/seanbrant/requests-wsgi-adapter"
+license=(BSD)
+depends=(python-requests)
+makedepends=(python-build python-installer python-setuptools python-wheel)
+# no tests in sdist tarball: https://github.com/seanbrant/requests-wsgi-adapter/issues/21
+# checkdepends=(python-pytest)
+source=(
+ https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz
+ # license file missing in sdist tarball: https://github.com/seanbrant/requests-wsgi-adapter/issues/22
+ $pkgname-$pkgver-LICENSE::https://github.com/seanbrant/requests-wsgi-adapter/blob/7b33ce210c17bd9707e4b26c2f0ed307424f90b9/LICENSE
+)
+sha256sums=('5a7709e90abf49d181f6c32aa37794537f725de0f6dd42362bc8c8c90812c878'
+ '947c34ef55d6c999169cfd61e66ac0aac47f1d21f3fcdf9e6bb95be6ac793c27')
+b2sums=('6c495a9af66ac8674b4fa14df4f089f82873159d082d12259fdb3ceece2b95c239115b8557de34dbb07efec861d367562aba4d0bebd12500dbbeb446e05d378c'
+ 'a2d9b41e26b4fc1d336506ea6d45cf7e6b8f6e0e826270d641eebbc6eff6729497fc3dd608134c37f00a78bbf8c6286787170e50179a1e17df16004a8ca9b45b')
+
+build() {
+ cd $_name-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+# check() {
+# cd $_name-$pkgver
+# pytest -vv
+# }
+
+package() {
+ cd $_name-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+ install -vDm 644 ../$pkgname-$pkgver-LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
More information about the arch-commits
mailing list