# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=py3-wcwidth _pkgname=wcwidth pkgver=0.2.6 pkgrel=2 pkgdesc="Measures number of Terminal column cells of wide-character codes" url="https://pypi.org/project/wcwidth" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-wcwidth" # Backwards compatibility provides="py-wcwidth=$pkgver-r$pkgrel" # Backwards compatibility # circular dependency on pytest options="$options !check" build() { python3 setup.py build } check() { python3 -m pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 0f7be2fcf0a2ef1c357fb3d1f7041a309443c8c771973aaf3acb7d83acee9fababa7f17dabc886a37d20bfc7dc13e8b0ce18637f4137ab349c881697e18c3a1c wcwidth-0.2.6.tar.gz "