void-packages/srcpkgs/python-ansicolor/template

27 lines
769 B
Bash

# Template file for 'python-ansicolor'
pkgname=python-ansicolor
version=0.2.6
revision=3
archs=noarch
wrksrc="ansicolor-${version}"
build_style=python-module
pycompile_module="ansicolor"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Library to produce ansi color output (Python2)"
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
license="Apache-2.0"
homepage="https://github.com/numerodix/ansicolor"
distfiles="${PYPI_SITE}/a/ansicolor/ansicolor-${version}.tar.gz"
checksum=d17e1b07b9dd7ded31699fbca53ae6cd373584f9b6dcbc124d1f321ebad31f1d
python3-ansicolor_package() {
archs=noarch
depends="python3"
pycompile_module="ansicolor"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
}
}