aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-ansicolor/APKBUILD
blob: f17a76a140c2c27732c0a66e93f5373602818c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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"