# Description: Pexpect makes Python a better tool for controlling other applications # URL: https://github.com/pexpect/pexpect # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: python3-build python3-flit-core python3-installer python3-ptyprocess python3-wheel name=python3-pexpect version=4.9.0 release=1 source=(https://pypi.org/packages/source/p/pexpect/pexpect-$version.tar.gz) build() { cd pexpect-$version _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl rm -rf $PKG/usr/lib/python$_pyver/site-packages/pexpect-$version.dist-info/{INSTALLER,REQUESTED} }