commit: 713a5b0af1cc2fc4ed272e187371601dbee529ee
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 27 03:03:56 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue May 27 03:24:33 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=713a5b0a
dev-python/libtmux: Bump to 0.46.2
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/libtmux/Manifest | 1 +
dev-python/libtmux/libtmux-0.46.2.ebuild | 53 ++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index 51e36db00bdc..387e1fe44451 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -6,3 +6,4 @@ DIST libtmux-0.44.2.gh.tar.gz 326828 BLAKE2B
ac2441ac13157bdce2465b1388f3e1570eb
DIST libtmux-0.45.0.gh.tar.gz 329763 BLAKE2B
3c8184b9e7ab874b4a85e3d3c3be3e96e48bfb14a02bf26a683062374c0a5258d911026a8c994639514668c775ab3855201d1daa466a20041635aeb978cffe24
SHA512
e1f921bddabcc26f034c331d3b9e7082c3d6d4cdbd8f0173e1499d8a05fd80ca79317409b29cb9ac95827ccb6e9127c58dffa6198ea5a2dee547fdaef23ba2ee
DIST libtmux-0.46.0.gh.tar.gz 337117 BLAKE2B
23caa10584c943ee1e7c162ce97d9d18d297a52fa15a4ac66be2e29314499d2f99bfa5a3061cef6ad80dc94ba8bf9362725d92e74385973aa717849a78388ac4
SHA512
4143639f0219c5751e69718d79c08efec8f9a6f5229aa48f6a7f7fe6c32486ee4b92f6d962fa6ef8f396852a688e373daf0d416f29b95036d015b3fcbba063a9
DIST libtmux-0.46.1.gh.tar.gz 337302 BLAKE2B
b0e086aab882c9ec82ee5606a7ea02e81a549d3009bf8b0f4bc736d8ba8cc7130afd024781c95e332527bdb72202346558d90a4989c5ff2cbb7f6836960e88ef
SHA512
41b526d40373d1251260cea8e4fc94cb176275f2c399030b66266663e831f733fb017bebc32e92b9809212c064b21e539853ec780b8f75f0afe01db8b5cb2236
+DIST libtmux-0.46.2.gh.tar.gz 350347 BLAKE2B
b771eb8e0fc48082ec7e08d82143c48c0df51bb0f5cc2783df4969a78cbfb232aef76e9ec3b44e728a49651c892cfec6b4623297fc7c5cf8f7cf96453b04aba4
SHA512
60ca1e3699ce6fb5bb0b44ef6ef7349b96c9b1eec8f3761e6da94cd69fc9088a25d717271d34350b79b4139c4607ee37933370d83d6645462b34caa02f65bb07
diff --git a/dev-python/libtmux/libtmux-0.46.2.ebuild
b/dev-python/libtmux/libtmux-0.46.2.ebuild
new file mode 100644
index 000000000000..5879a6ffdcb0
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.46.2.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{11..14} pypy3_11 )
+
+inherit distutils-r1
+
+DESCRIPTION="Typed library that provides an ORM wrapper for tmux, a terminal
multiplexer"
+HOMEPAGE="
+ https://libtmux.git-pull.com/
+ https://github.com/tmux-python/libtmux/
+ https://pypi.org/project/libtmux/
+"
+SRC_URI="
+ https://github.com/tmux-python/libtmux/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ >=app-misc/tmux-3.0a
+"
+BDEPEND="
+ test? (
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ local issues="https://github.com/tmux-python/libtmux/issues/"
+ sed -r -i "s|:issue:\`([[:digit:]]+)\`|\`issue \1 ${issues}\1\`|"
CHANGES || die
+
+ distutils-r1_python_prepare_all
+}
+
+python_test() {
+ # tests/test_window.py::test_fresh_window_data fails if TMUX_PANE is set
+ # https://bugs.gentoo.org/927158
+ local -x TMUX_PANE=
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=libtmux.pytest_plugin
+
+ epytest -o addopts= -p pytest_mock -p rerunfailures --reruns=5 tests
+}