mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-17 14:49:30 -07:00
38 lines
810 B
Bash
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
|