1 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
2 # Contributor: Darshit Shah <darnir@gmail.com>
5 pkgname=python-ansicolor
8 pkgdesc='Library to produce ansi color output and colored highlighting and diffing'
10 url=https://github.com/numerodix/ansicolor
13 makedepends=('python-build' 'python-installer' 'python-setuptools'
15 checkdepends=('python-pytest')
16 source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
17 sha256sums=('3b840a6b1184b5f1568635b1adab28147947522707d41ceba02d5ed0a0877279')
18 b2sums=('c7f3287645ec3c1b02280b2ac4da0051ba1a88b71c09516f98103787ae2d09bed7b441ecb8cea9796f24f3935154cf1bc4180d12842f8ed1c6e024a066fa228a')
22 python -m build --wheel --skip-dependency-check --no-isolation
27 python -m venv --system-site-packages test-env
28 test-env/bin/python -m installer dist/*.whl
29 test-env/bin/python -m pytest
34 python -m installer --destdir="$pkgdir" dist/*.whl