# Template file for 'python-ptyprocess'
pkgname=python-ptyprocess
version=0.6.0
revision=1
noarch=yes
wrksrc="ptyprocess-${version}"
build_style=python-module
pycompile_module="ptyprocess"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Run a subprocess in a pseudo terminal (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/pexpect/ptyprocess"
license="ISC"
distfiles="${PYPI_SITE}/p/ptyprocess/ptyprocess-${version}.tar.gz"
checksum=923f299cc5ad920c68f2bc0bc98b75b9f838b93b599941a6b63ddbc2476394c0

post_install() {
	vlicense LICENSE
}

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