commit:     a41e5bd6ea74e44066822c5ba5152fe486f986a2
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 28 04:31:26 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 28 05:19:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a41e5bd6

dev-python/huawei-lte-api: Bump to 1.9.3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/huawei-lte-api/Manifest                 |  1 +
 .../huawei-lte-api/huawei-lte-api-1.9.3.ebuild     | 40 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)

diff --git a/dev-python/huawei-lte-api/Manifest 
b/dev-python/huawei-lte-api/Manifest
index 19461dec9f57..3b09e3c2c902 100644
--- a/dev-python/huawei-lte-api/Manifest
+++ b/dev-python/huawei-lte-api/Manifest
@@ -1 +1,2 @@
 DIST huawei-lte-api-1.8.1.gh.tar.gz 40698 BLAKE2B 
61e2e6399b106e7efe68ed50d0d3e17ca4b243d62c2b4d00215141931f806ef09c7bee826e50b2b37f7bc8cdb663912019470932a1aa491e0ca582f4ea7baa8d
 SHA512 
704c9f18db74aaa544888c761a934e9886460ce5e1848e1e221ed05cedf1357a0bcce758d2afe126dfd39739d7819520a5fc82a19315647f38f058fbe60d0511
+DIST huawei-lte-api-1.9.3.gh.tar.gz 41344 BLAKE2B 
3812c2dd5404320eb24bbe6e1e5819effad06641e96289ac279e5fe96add8880d837bf6770816f1bdce553cbf1aad73d370377c7f0713428d6ac46906d88602c
 SHA512 
4f5f00dd416b017422753940ae69a1c24b424692fdf9e6ea29073035d381b5434462b022ebe44bf4d911eafe07f9ff57b8d349bf7140e0f33daba6384a73cd24

diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.9.3.ebuild 
b/dev-python/huawei-lte-api/huawei-lte-api-1.9.3.ebuild
new file mode 100644
index 000000000000..4315d293fdf2
--- /dev/null
+++ b/dev-python/huawei-lte-api/huawei-lte-api-1.9.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..13} )
+
+inherit distutils-r1
+
+DESCRIPTION="API For huawei LAN/WAN LTE Modems"
+HOMEPAGE="
+       https://github.com/Salamek/huawei-lte-api/
+       https://pypi.org/project/huawei-lte-api/
+"
+SRC_URI="
+       https://github.com/Salamek/${PN}/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+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:' setup.py || die
+       find -name '*.py' -exec \
+               sed -i -e 's:Cryptodome:Crypto:g' {} + || die
+
+       distutils-r1_python_prepare_all
+}
+
+distutils_enable_tests pytest

Reply via email to