commit:     f4383c0af000f68c5b9930349f9a8f378f9ed01e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 17 14:32:05 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb 17 20:46:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4383c0a

dev-python/libtmux: Bump to 0.44.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/libtmux/Manifest              |  1 +
 dev-python/libtmux/libtmux-0.44.1.ebuild | 56 ++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest
index 3a5f2c97fd9a..e9d038e949e9 100644
--- a/dev-python/libtmux/Manifest
+++ b/dev-python/libtmux/Manifest
@@ -7,3 +7,4 @@ DIST libtmux-0.40.1.gh.tar.gz 318542 BLAKE2B 
5b9e383a3c07bab3af7c25adcf5db1c6acf
 DIST libtmux-0.42.0.gh.tar.gz 318655 BLAKE2B 
5d462bd78e81bd38cfb0c42a2100287fc79b9fe31aaeccbac5c9fd124afc2df9da4ceb5cd469de1919df2995c27d4c0628629004938795b6f8731e84c23ed2bc
 SHA512 
38e7c21bd99859add1737a1028c18852a564a2d32c27b72ea37d623bcbc0646b095ad4dd520385c11d6df4c779429ac452f6ae592a6d0ffcb4fe64bf2a4388b3
 DIST libtmux-0.42.1.gh.tar.gz 318887 BLAKE2B 
7bbac22a4d2aa0a448888777b2ce99b08a90b5a76907f95ffe5278d3fb87354ae7bab5ab6b5b21ff7485b656ae6efd5a70f968750009bda2b8959024aefb3538
 SHA512 
a8f2be99f7e7b20d78c4597cd588571481247d1cfff4dbecaa93322584f56099a966ee745a192231ace92cd29d48232922b3b15445115039f21aca8cd33c6d69
 DIST libtmux-0.43.0.gh.tar.gz 322128 BLAKE2B 
835e6d4bf47c54a7cc373ad54e11bd49aba84b19e68dea20b73c977e145396a89cf7562861c75eed5fdedcfc69f83855786aa88139a2f88dee29a272cdbc1f1d
 SHA512 
1a2992fc6d65811bb7d42e2d5eecc7efe9cf737fcd5898ed91e4f4cf317244e7a5f14fa21ea1a169dd3f8fbad8bf044e371f26704a091d7d22465ce410105220
+DIST libtmux-0.44.1.gh.tar.gz 324715 BLAKE2B 
8131be2d3fb91fb45fc7d7791160f7c00291a5ae606b6f01422b0d658ad1e4c5bdfe619bb7818956fb90c6228824ee53c38459e8074bbde160ea5620db02af81
 SHA512 
479a5eac8de142ecdba9f697ed45608d5d0a799b83a748de7cc7350e7ce16e81d6c2f5c23df89410e13c456175ed169f4512f98ec5a315c50f7e5d8fc96435e9

diff --git a/dev-python/libtmux/libtmux-0.44.1.ebuild 
b/dev-python/libtmux/libtmux-0.44.1.ebuild
new file mode 100644
index 000000000000..28f00ece7486
--- /dev/null
+++ b/dev-python/libtmux/libtmux-0.44.1.ebuild
@@ -0,0 +1,56 @@
+# 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_{10..13} pypy3 )
+
+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
+
+       # increase timeouts for tests
+       sed -e 's/0.01/0.1/' -i tests/test_test.py || 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
+}

Reply via email to