gentoo-ebuilds/app-misc/tmuxp/tmuxp-1.54.0.ebuild
Matt Turner 73dc2193ff
app-misc/tmuxp: Loosen dependence on libtmux
The changelog only says:

> - libtmux: Bump minimum version from 0.44.2 -> 0.45.0 (#968)
>
>   0.45.0+ needs this release of tmuxp to stay up-to-date with test helpers.

It doesn't claim to require exactly 0.46.0, so let's relax the
dependence to at least allow 0.46.1 as well.

Signed-off-by: Matt Turner <mattst88@gentoo.org>
2025-04-01 20:23:53 -04:00

54 lines
1.2 KiB
Bash

# Copyright 2019-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1
DESCRIPTION="tmux session manager. built on libtmux"
HOMEPAGE="https://tmuxp.git-pull.com"
SRC_URI="https://github.com/tmux-python/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
RDEPEND="
>=app-misc/tmux-3.0a
=dev-python/libtmux-0.46*[${PYTHON_USEDEP}]
>=dev-python/colorama-0.3.9[${PYTHON_USEDEP}]
>=dev-python/pyyaml-6.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
>=dev-python/pytest-6.2.5[${PYTHON_USEDEP}]
>=dev-python/pytest-mock-3.14.0[${PYTHON_USEDEP}]
>=dev-python/pytest-rerunfailures-4.2[${PYTHON_USEDEP}]
!dev-python/flaky
)
"
EPYTEST_DESELECT=(
# test doesn't get along with sandbox
"tests/cli/test_load.py::test_load_zsh_autotitle_warning"
)
EPYTEST_IGNORE=(
# not actually tests, but throws off test collection
"tests/fixtures/"
)
distutils_enable_tests pytest
python_prepare_all() {
sed -r -e 's:libtmux = "~[0-9.]+":libtmux = "~0.30":' \
-i pyproject.toml || die
distutils-r1_python_prepare_all
}
python_test() {
SHELL="/bin/bash" epytest tests
}