2021-06-14 19:51:52 +00:00
|
|
|
# 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
|
2023-11-25 22:48:47 +01:00
|
|
|
# Depends on: python3-build python3-flit-core python3-installer python3-ptyprocess python3-wheel
|
2021-06-14 19:51:52 +00:00
|
|
|
|
|
|
|
name=python3-pexpect
|
2023-11-25 22:48:47 +01:00
|
|
|
version=4.9.0
|
2021-06-14 19:51:52 +00:00
|
|
|
release=1
|
2023-11-25 22:48:47 +01:00
|
|
|
source=(https://pypi.org/packages/source/p/pexpect/pexpect-$version.tar.gz)
|
2021-06-14 19:51:52 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd pexpect-$version
|
2022-07-10 18:09:56 +02:00
|
|
|
_pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])')
|
|
|
|
|
2023-11-25 22:48:47 +01:00
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl
|
2022-07-10 18:09:56 +02:00
|
|
|
|
|
|
|
rm -rf $PKG/usr/lib/python$_pyver/site-packages/pexpect-$version.dist-info/{INSTALLER,REQUESTED}
|
2021-06-14 19:51:52 +00:00
|
|
|
}
|