# Template file for 'python-blessings'
pkgname=python-blessings
version=1.7
revision=1
noarch=yes
wrksrc="blessings-${version}"
build_style=python-module
pycompile_module="blessings"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six"
short_desc="Wrapper around terminal coloring, styling, and positioning (Python2)"
maintainer="Maurizio Porrato <maurizio.porrato@gmail.com>"
homepage="https://github.com/erikrose/blessings"
license="MIT"
distfiles="${PYPI_SITE}/b/blessings/blessings-${version}.tar.gz"
checksum=98e5854d805f50a5b58ac2333411b0482516a8210f23f43308baeb58d77c157d

post_install() {
	vlicense LICENSE
}

python3-blessings_package() {
	noarch=yes
	depends="python3-six"
	pycompile_module="blessings"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
