diff options
-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" |