commit: 3e13dd1ad0679da71cabde7adcbd873289d98362
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 24 05:16:37 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 24 06:10:45 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e13dd1a
dev-python/huawei-lte-api: Bump to 1.7.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.7.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 4271fd295819..5d5c7097659e 100644
--- a/dev-python/huawei-lte-api/Manifest
+++ b/dev-python/huawei-lte-api/Manifest
@@ -1 +1,2 @@
DIST huawei-lte-api-1.6.11.gh.tar.gz 38037 BLAKE2B
be2da7d8918d367e589937cdd70222afdafd6082e6c25c7238a7ba6bb160bc1410cf682a79b41c4d9e0eca3c337130e5a33a3a7985f9cb1ff6c78fe5bfbf6358
SHA512
4e7248438882988c6eadb61c57e53a773f65737ca4ee770cf1a9a8e99a10d1a930c412f3d3d3235edb5061d00a56da75e92a58af095fe79db98ce024a2acb773
+DIST huawei-lte-api-1.7.3.gh.tar.gz 39166 BLAKE2B
52e2ab89a2ab6aadccd92192c73f1ef5ac4aa376dc6b5e29f9460881ccd3e600744789d33d490efa86315b5ad9f6090d56a45132ae3dc421dc5025032319ed59
SHA512
83bdfae0b8d44789ebfe8f94233b4d5b49fe3e379f25205fe71970d533ecbd0611c13cfbe3471c9331b4bcde6c737aaf53156c397d7016e5de5cc053f221374b
diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.7.3.ebuild
b/dev-python/huawei-lte-api/huawei-lte-api-1.7.3.ebuild
new file mode 100644
index 000000000000..bbc47971d5cf
--- /dev/null
+++ b/dev-python/huawei-lte-api/huawei-lte-api-1.7.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{10..11} )
+
+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