# Contributor: Max Rees <maxcrees@me.com> # Maintainer: Max Rees <maxcrees@me.com> pkgname=py3-wcwidth _pkgname=wcwidth _p="${_pkgname#?}" _p="${_pkgname%"$_p"}" pkgver=0.1.7 pkgrel=0 pkgdesc="Wide-character terminal column cell measurement" url="https://pypi.python.org/pypi/wcwidth" arch="noarch" # Certified net clean license="MIT" depends="python3" makedepends="" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz run-tests.patch" builddir="$srcdir/$_pkgname-$pkgver" build() { python3 setup.py build } check() { PYTHONPATH="$builddir" python3 "$builddir/wcwidth/tests/test_core.py" } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="5bc9625fbd10721a50a3ac7d7f91012cca8e4f83533f265cf56890498bc52a53b155c82e67d6bc5523a5593c8d7992a1dec2a0f590318170eddf987c56f9c368 py3-wcwidth-0.1.7.tar.gz f221823b0a7c70e45dd4cba806db5b463425e067f12395ec88370f884a652b1b3959a52d57b830dfe25229afb2d5ea9d8bd97c33c8a97766953f8458997c07f8 run-tests.patch"