Install this version:
emerge -a =dev-python/huawei-lte-api-2.0.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/huawei-lte-api-2.0.1
Or alternatively:
emerge --autounmask-write -a =dev-python/huawei-lte-api-2.0.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.0.1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{12..15} )
inherit distutils-r1 pypi
DESCRIPTION="API For huawei LAN/WAN LTE Modems"
HOMEPAGE="
https://github.com/Salamek/huawei-lte-api/
https://pypi.org/project/huawei-lte-api/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/pycryptodome[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/xmltodict[${PYTHON_USEDEP}]
"
python_prepare_all() {
# make cryptodome-friendly
sed -i -e 's:pycryptodomex:pycryptodome:' pyproject.toml || die
find -name '*.py' -exec \
sed -i -e 's:Cryptodome:Crypto:g' {} + || die
distutils-r1_python_prepare_all
}
EPYTEST_PLUGINS=()
distutils_enable_tests pytest