community/py3-urwid: upgrade to 2.2.2 & use gpep517 packaging

also, switch project URL to HTTPS, re-enable checks, and
change license to LGPL-2.1-only (according to pyproject.toml).
This commit is contained in:
Celeste 2023-09-27 13:54:55 +00:00 committed by Leonardo Arena
parent f98d0aabb5
commit 38dec8573a

View File

@ -2,16 +2,25 @@
# Maintainer: Matt Smith <mcs@darkregion.net>
pkgname=py3-urwid
_pyname=urwid
pkgver=2.1.2
pkgrel=4
pkgver=2.2.2
pkgrel=0
pkgdesc="A console user interface library for Python3"
options="!check" # (failures=1)
url="http://urwid.org/"
url="https://urwid.org/"
arch="all"
license="LGPL-2.0-or-later"
depends="python3"
makedepends="python3-dev py3-setuptools"
checkdepends="py3-twisted py3-tornado"
license="LGPL-2.1-only"
makedepends="
python3-dev
py3-gpep517
py3-setuptools_scm
py3-wheel
"
checkdepends="
py3-pytest-cov
py3-pyzmq
py3-tornado
py3-trio
py3-twisted
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/u/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
@ -20,15 +29,23 @@ replaces="py-urwid" # Backwards compatibility
provides="py-urwid=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest \
--ignore urwid/event_loop/glib_loop.py
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="f102bdde5f5d39d4bce455020bbe4f18290589da0750a3b15b1e2bc8acf8a405f02295d7efa3009877801a36bfbfade92ec963086122e9b133db137d816a1ea5 urwid-2.1.2.tar.gz"
sha512sums="
0cc921b6abf27f02e464cf969f8c2267c01956961a4dcee7a8a45e181c82cf8913e2a391d86e2e5d1ca63c7c785abc9712c5107b279473fa10253aa6f370a334 urwid-2.2.2.tar.gz
"