# Contributor: Keith Maxwell # Maintainer: Keith Maxwell pkgname=py3-ansicolor _pyname=ansicolor pkgver=0.2.4 pkgrel=0 pkgdesc="A library to produce ansi color output, highlighting and diffing" url="https://github.com/numerodix/ansicolor" arch="noarch" license="Apache-2.0" depends="python3" checkdepends="py3-pytest" # no tests in artifact on PyPI source="$pkgname-$pkgver.tar.gz::https://github.com/numerodix/$_pyname/archive/$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" build() { python3 setup.py build } check() { TERM=linux python3 -m pytest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="c97329d523e70d9e57ccf21d4c21796ccfcf6ff02d9b9aa290a366baee6088177467cbb269d75d0045b22f81326bcd7b8f4dc1b21d8f52230e72534e12ab48c2 py3-ansicolor-0.2.4.tar.gz"