# Template file for 'python-six'
pkgname=python-six
version=1.15.0
revision=3
wrksrc="six-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python-pytest python3-pytest"
short_desc="Python 2 and 3 compatibility utilities (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/benjaminp/six"
changelog="https://raw.githubusercontent.com/benjaminp/six/master/CHANGES"
distfiles="${PYPI_SITE}/s/six/six-${version}.tar.gz"
checksum=30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259

post_install() {
	vlicense LICENSE
}

do_check() {
	python -m pytest
	python3 -m pytest
}

python3-six_package() {
	depends="python3"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
