42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-pexpect'
|
|
pkgname=python-pexpect
|
|
version=4.3.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="${pkgname/python-}-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-ptyprocess"
|
|
pycompile_module="pexpect"
|
|
short_desc="Python2 module for spawning child applications and controlling them"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://pexpect.readthedocs.io/"
|
|
license="ISC"
|
|
distfiles="${PYPI_SITE}/p/pexpect/pexpect-${version}.tar.gz"
|
|
checksum=8e287b171dbaf249d0b06b5f2e88cb7e694651d2d0b8c15bccb83170d3c55575
|
|
|
|
post_install() {
|
|
# drop asyncio stuff from python2
|
|
# https://github.com/pexpect/pexpect/issues/290
|
|
rm -f ${DESTDIR}/usr/lib/python2*/site-packages/pexpect/_async.py
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pexpect_package() {
|
|
noarch=yes
|
|
depends="python3-ptyprocess"
|
|
pycompile_module="pexpect"
|
|
replaces="python3.4-pexpect>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-pexpect_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pexpect>=${version}_${revision}"
|
|
}
|