# Template file for 'python-py'
pkgname=python-py
version=1.8.0
revision=2
archs=noarch
wrksrc="py-${version}"
build_style=python-module
pycompile_module="py"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
checkdepends="python3-pytest"
short_desc="Python2 development support library"
maintainer="Orpahend <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/pytest-dev/py"
changelog="https://github.com/pytest-dev/py/raw/master/CHANGELOG"
distfiles="${PYPI_SITE}/p/py/py-${version}.tar.gz"
checksum=dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53

do_check() {
	python3 -m pytest
}

post_install() {
	vlicense LICENSE
}

python3-py_package() {
	archs=noarch
	depends="python3"
	pycompile_module="py"
	short_desc="${short_desc/Python2/Python3}"
	pkg_install() {
		vmove usr/lib/python3*
		vlicense LICENSE
	}
}
