Files
gentoo/dev-python/huawei-lte-api/huawei-lte-api-2.0.1.ebuild
Michał Górny cf86519985 dev-python/huawei-lte-api: Bump to 2.0.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2026-08-15 09:07:23 +02:00

38 lines
810 B
Bash

# 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