diff options
Diffstat (limited to 'community/py3-urwid/APKBUILD')
-rw-r--r-- | community/py3-urwid/APKBUILD | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/community/py3-urwid/APKBUILD b/community/py3-urwid/APKBUILD index 30cb6025eea..a5c00a5aef7 100644 --- a/community/py3-urwid/APKBUILD +++ b/community/py3-urwid/APKBUILD @@ -2,16 +2,26 @@ # Maintainer: Matt Smith <mcs@darkregion.net> pkgname=py3-urwid _pyname=urwid -pkgver=2.1.2 +pkgver=2.2.3 pkgrel=1 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 @@ -19,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 --prefix=/usr --root="$pkgdir" + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="f102bdde5f5d39d4bce455020bbe4f18290589da0750a3b15b1e2bc8acf8a405f02295d7efa3009877801a36bfbfade92ec963086122e9b133db137d816a1ea5 urwid-2.1.2.tar.gz" +sha512sums=" +48588d0c819b229bdaaa70bec3a279c3bf232b8520d95e1f45a83bea927244634e91fd47cc161647c2d8155e523543549bc5ed2ccb5eac29843e12515e5dfd22 urwid-2.2.3.tar.gz +" |