Andreas Billmeier (@Home/mbp) 13112a0e10
dev-python/pymodbus: enable py3.12
Signed-off-by: Andreas Billmeier <b@edevau.net>
2023-07-12 22:16:55 +02:00

45 lines
1.2 KiB
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="A fully featured modbus protocol stack in python"
HOMEPAGE="https://github.com/riptideio/pymodbus/ https://pypi.org/project/pymodbus/"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm arm64 x86"
IUSE="datastore serial test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/aiohttp-3.8.1[${PYTHON_USEDEP}]
>=dev-python/typer-0.7.0[${PYTHON_USEDEP}]
>=dev-python/prompt-toolkit-3.0.36[${PYTHON_USEDEP}]
datastore? (
>=dev-python/redis-2.0.16[${PYTHON_USEDEP}]
>=dev-python/sqlalchemy-1.1.15[${PYTHON_USEDEP}]
)
serial? (
>=dev-python/pyserial-3.5[${PYTHON_USEDEP}]
)"
BDEPEND="
test? (
dev-python/mock[${PYTHON_USEDEP}]
dev-python/coverage[${PYTHON_USEDEP}]
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-asyncio[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
)"
src_prepare() {
sed "/prompt-toolkit==/c\prompt-toolkit" -i requirements.txt || die
eapply_user
}
distutils_enable_tests pytest