aboutsummaryrefslogblamecommitdiffstats
path: root/testing/py3-ansicolor/APKBUILD
blob: f17a76a140c2c27732c0a66e93f5373602818c1a (plain) (tree)





























                                                                                                                                                                         
# Contributor: Keith Maxwell <keith.maxwell@gmail.com>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
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"