diff options
author | 2023-05-23 21:23:11 +0300 | |
---|---|---|
committer | 2023-05-23 21:35:54 +0300 | |
commit | b34695daa2abbf05f45ae45115047c0baf2f50c8 (patch) | |
tree | ed1b6f741b7c47a34dfe99d603bbcba798e5fc08 /dev-python/pexpect | |
parent | app-admin/ansible: add 7.6.0 (diff) | |
download | gentoo-b34695daa2abbf05f45ae45115047c0baf2f50c8.tar.gz gentoo-b34695daa2abbf05f45ae45115047c0baf2f50c8.tar.bz2 gentoo-b34695daa2abbf05f45ae45115047c0baf2f50c8.zip |
dev-python/pexpect: add 4.8.0_p20230402, enable py3.12
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pexpect')
-rw-r--r-- | dev-python/pexpect/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pexpect/pexpect-4.8.0_p20230402.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pexpect/Manifest b/dev-python/pexpect/Manifest index 335b751b7e95..59920b3f9b8d 100644 --- a/dev-python/pexpect/Manifest +++ b/dev-python/pexpect/Manifest @@ -1 +1,2 @@ DIST pexpect-4.8.0.tar.gz 157037 BLAKE2B 742642bd6b9ec3f6cdfad054d4fd22db56b4a55b746d675c27a8cdf824ea749ec4589e296dffa08778195f3ccd20feb56bc0fd5212984396ea5aa0555c41ca96 SHA512 7447ae2d1e13be422c894a8fd51c5aaa788e37ea7f0c798c88b77afd401fb3631400a637077ccbb83c2e3876b0d0c5e1dbd5fdc9d3739d785b4d5ad7c0192580 +DIST pexpect-4.8.0_p20230402.gh.tar.gz 169420 BLAKE2B 4780621f5876506c5ad2dbf03656d8c336d5aadef99b1ae99e841b5d0a945ab54177cb04a79b526e422cd4df7393c723000e4a28960bd5f57a5e0173b0a3bc69 SHA512 72cdf226ec5c7d60a10fbcecf81cd1ae422467652e104bb818908bf6d1a4a4bcadab9a06d58475a9609580d973956e18e2ab144ab13a0b700072474ff3087259 diff --git a/dev-python/pexpect/pexpect-4.8.0_p20230402.ebuild b/dev-python/pexpect/pexpect-4.8.0_p20230402.ebuild new file mode 100644 index 000000000000..5d6eb118364b --- /dev/null +++ b/dev-python/pexpect/pexpect-4.8.0_p20230402.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +COMMIT="2532721644781543ca660e52d48a35bd93872fc1" + +DESCRIPTION="Python module for spawning child apps and responding to expected patterns" +HOMEPAGE=" + https://pexpect.readthedocs.io/ + https://pypi.org/project/pexpect/ + https://github.com/pexpect/pexpect/ +" +SRC_URI=" + https://github.com/pexpect/pexpect/archive/${COMMIT}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="examples" + +RDEPEND=" + >=dev-python/ptyprocess-0.5[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest +distutils_enable_sphinx doc + +src_test() { + # workaround new readline defaults + echo "set enable-bracketed-paste off" > "${T}"/inputrc || die + local -x INPUTRC="${T}"/inputrc + distutils-r1_src_test +} + +python_install_all() { + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |