upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-ansicolor / trunk / PKGBUILD
bloba56e528e5be2d8a6fca6dd553f7b7cdd2af083a8
1 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
2 # Contributor: Darshit Shah <darnir@gmail.com>
4 _name=ansicolor
5 pkgname=python-ansicolor
6 pkgver=0.3.2
7 pkgrel=5
8 pkgdesc='Library to produce ansi color output and colored highlighting and diffing'
9 arch=('any')
10 url=https://github.com/numerodix/ansicolor
11 license=('Apache')
12 depends=('python')
13 makedepends=('python-build' 'python-installer' 'python-setuptools'
14              'python-wheel')
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')
20 build() {
21   cd $_name-$pkgver
22   python -m build --wheel --skip-dependency-check --no-isolation
25 check() {
26   cd $_name-$pkgver
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
32 package() {
33   cd $_name-$pkgver
34   python -m installer --destdir="$pkgdir" dist/*.whl