diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-02-26 06:44:49 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-02-26 07:03:13 +0100 |
| commit | b52be83474afa076c3ea350407dc399522e2147b (patch) | |
| tree | 9765de544933ce7e537ebda795ed5ada0b9dc652 /dev-python | |
| parent | e995c4e64e67c856ca9e88e4e2cc8b79ad7ae4da (diff) | |
| download | gentoo-b52be83474afa076c3ea350407dc399522e2147b.tar.gz gentoo-b52be83474afa076c3ea350407dc399522e2147b.tar.bz2 gentoo-b52be83474afa076c3ea350407dc399522e2147b.zip | |
dev-python/libtmux: Bump to 0.46.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/libtmux/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/libtmux/libtmux-0.46.0.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/libtmux/Manifest b/dev-python/libtmux/Manifest index 33c5053b66d1..465b9e600b07 100644 --- a/dev-python/libtmux/Manifest +++ b/dev-python/libtmux/Manifest @@ -4,3 +4,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.44.2.gh.tar.gz 326828 BLAKE2B ac2441ac13157bdce2465b1388f3e1570eb48193f26a37cfe6d68e56e93f659410af2851be20cd2f94011298c2b93a54eee20f5d07b4fbff15d26e00bbae6c0c SHA512 383784bb335c0f6e8200e20e8afd5b643658ee081a2c07cb9df2ee682d4b411b3ea17c7607587b8855f7d6571f5db7dd75318eefdd8946e6e38560309b5fa35f 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 diff --git a/dev-python/libtmux/libtmux-0.46.0.ebuild b/dev-python/libtmux/libtmux-0.46.0.ebuild new file mode 100644 index 000000000000..b86630b392a7 --- /dev/null +++ b/dev-python/libtmux/libtmux-0.46.0.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_{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 + + 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 +} |
