Install this version:
emerge -a =dev-python/modbus-connection-4.12.7
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/modbus-connection-4.12.7
Or alternatively:
emerge --autounmask-write -a =dev-python/modbus-connection-4.12.7
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=hatchling
PYPI_PN="modbus-connection"
inherit pypi distutils-r1
DESCRIPTION="Backend-neutral Modbus connection abstraction (pymodbus / tmodbus)"
HOMEPAGE="https://pypi.org/project/modbus-connection/ https://github.com/home-assistant-libs/modbus-connection"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="pymodbus tmodbus test"
RESTRICT="!test? ( test )"
# Both backends are PEP 508 extras this wheel declares (its METADATA's Provides-Extra), so they
# are optional groups rather than requirements of the wheel itself: modelled as flags, like the
# published mirror does. Its tmodbus line pinned 0.6.1, below the >=1.1.0 the wheel asks for,
# and its block was spelled RDEPENDS= (which portage ignores) - both are corrected here.
RDEPEND="
dev-python/pymodbus[${PYTHON_USEDEP}]
pymodbus? ( >=dev-python/pymodbus-3.11[${PYTHON_USEDEP}] )
tmodbus? ( >=dev-python/tmodbus-1.1.0[${PYTHON_USEDEP}] )
"
BDEPEND="
${RDEPEND}
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
Manage flags for this package:
euse -i <flag> -p dev-python/modbus-connection |
euse -E <flag> -p dev-python/modbus-connection |
euse -D <flag> -p dev-python/modbus-connection
dev-python/pymodbus[] pymodbus? ( >=dev-python/pymodbus-3.11[] ) tmodbus? ( >=dev-python/tmodbus-1.1.0[] )
dev-python/pymodbus[] pymodbus? ( >=dev-python/pymodbus-3.11[] ) tmodbus? ( >=dev-python/tmodbus-1.1.0[] ) test? ( dev-python/pytest[] dev-python/pytest-asyncio[] )