diff options
author | Keith Maxwell <keith.maxwell@gmail.com> | 2019-05-13 10:15:42 +0100 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-13 10:44:55 +0000 |
commit | 8d2e670c3970316e4fc50a2f42f167427a1e2d63 (patch) | |
tree | 06b5204e4391510ee4a7418174047960078efcae | |
parent | aeff71c24acc8f389289b95b3c6f40c70a5128c2 (diff) | |
download | aports-8d2e670c3970316e4fc50a2f42f167427a1e2d63.tar.bz2 aports-8d2e670c3970316e4fc50a2f42f167427a1e2d63.tar.xz |
testing/py3-ansicolor: new aport
-rw-r--r-- | testing/py3-ansicolor/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testing/py3-ansicolor/APKBUILD b/testing/py3-ansicolor/APKBUILD new file mode 100644 index 0000000000..f17a76a140 --- /dev/null +++ b/testing/py3-ansicolor/APKBUILD @@ -0,0 +1,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" |