archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-colorama / repos / community-any / PKGBUILD
blob3a54bab8510c92aab29012c3c1f92d1983111625
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Alexander Duscheleit <jinks@archlinux.us>
4 pkgname=python-colorama
5 pkgver=0.4.6
6 pkgrel=2
7 pkgdesc="Python API for cross-platform colored terminal text."
8 arch=('any')
9 url="https://pypi.python.org/pypi/colorama"
10 license=('BSD')
11 depends=('python')
12 makedepends=('python-build' 'python-installer' 'python-hatchling')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/tartley/colorama/archive/$pkgver.tar.gz")
14 sha512sums=('2b269b190041398a1808b0b5147e47422b4451a1bc91841d0957572214ba8addd731c8932afdc60bfbba9833a0fe6c9c5c2ecb150613f13498f661799d625e4f')
16 build() {
17   cd colorama-$pkgver
18   python -m build -nw
21 check() {
22   cd colorama-$pkgver
23   python -m unittest discover -p *_test.py
26 package() {
27   cd colorama-$pkgver
28   python -m installer -d "$pkgdir" dist/*.whl
29   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/