# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-colorama _pkgname=colorama pkgver=0.4.1 pkgrel=2 pkgdesc="Simple cross-platform colored terminal text" options="!check" # 2 Tests fail on drone-ci url="https://pypi.python.org/pypi/colorama" arch="noarch" license="BSD-3-Clause" depends="python3" makedepends="py3-setuptools" checkdepends="py3-mock" source="$pkgname-$pkgver.tar.gz::https://github.com/tartley/colorama/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-colorama # Backwards compatibility provides=py-colorama=$pkgver-r$pkgrel # Backwards compatibility build() { python3 setup.py build } check() { python3 -m unittest discover -p *_test.py } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="006069859ca05ec8a6808860ca73ab541b246e6e6443b1bc8426973beaa5268660b48994f21edb6492fe97c4b9d29949b874b861ec200b1756d40e8abda8dee0 py3-colorama-0.4.1.tar.gz"