From e6fb38a072d5be219cf5eacea942f949113ff14d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 22 Feb 2022 09:45:39 +0100 Subject: dev-python/huawei-lte-api: Fix pycryptodome requirement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild | 31 ++++++++++++++++++++++ .../huawei-lte-api/huawei-lte-api-1.5.4.ebuild | 30 --------------------- 2 files changed, 31 insertions(+), 30 deletions(-) create mode 100644 dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild delete mode 100644 dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild b/dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild new file mode 100644 index 000000000000..e391e88edb3f --- /dev/null +++ b/dev-python/huawei-lte-api/huawei-lte-api-1.5.4-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( pypy3 python3_{8..10} ) +inherit distutils-r1 + +DESCRIPTION="API For huawei LAN/WAN LTE Modems" +HOMEPAGE="https://github.com/Salamek/huawei-lte-api" +SRC_URI="https://github.com/Salamek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +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:' setup.py || die + find -name '*.py' -exec \ + sed -i -e 's:Cryptodome:Crypto:g' {} + || die + + distutils-r1_python_prepare_all +} + +distutils_enable_tests pytest diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild b/dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild deleted file mode 100644 index 9f84cd2c71a0..000000000000 --- a/dev-python/huawei-lte-api/huawei-lte-api-1.5.4.ebuild +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( pypy3 python3_{8..10} ) -inherit distutils-r1 - -DESCRIPTION="API For huawei LAN/WAN LTE Modems" -HOMEPAGE="https://github.com/Salamek/huawei-lte-api" -SRC_URI="https://github.com/Salamek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="" - -RDEPEND="dev-python/pycryptodome[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/xmltodict[${PYTHON_USEDEP}]" - -python_prepare_all() { - # make cryptodome-friendly - find -name '*.py' -exec \ - sed -i -e 's:Cryptodome:Crypto:g' {} + || die - - distutils-r1_python_prepare_all -} - -distutils_enable_tests pytest -- cgit v1.2.3-65-gdbad