1 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2 # Contributor: Daniel Isenmann <daniel@archlinux.org>
3 # Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
4 # Contributor: Douglas Soares de Andrade <dsandrade@gmail.com>
8 pkgver=2.1.2.r41.g0c0ea37
9 # somewhere past 2.1.2 as there has not been a release in years ;_;
10 # https://github.com/urwid/urwid/issues/511
11 _commit=0c0ea377ab9b418cbb5233fa6e178dd05f1f4e5a
13 pkgdesc='Curses-based user interface library'
14 url='https://urwid.org/'
17 depends=('python' 'glibc')
26 git+https://github.com/$_name/$_name.git#commit=$_commit
33 git describe --long --abbrev=7 | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
38 python -m build --wheel --no-isolation
43 python -m unittest discover -vs $_name/tests
48 python -m installer --destdir="$pkgdir" dist/*.whl
49 rm -rv "${pkgdir}"/usr/lib/python*/site-packages/urwid/tests