commit:     d84c3eee50bb14678310ab4305597227ac1f7b10
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 31 11:07:35 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Mar 31 11:33:02 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d84c3eee

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

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

 dev-python/huawei-lte-api/Manifest                 |  1 +
 .../huawei-lte-api/huawei-lte-api-1.6.ebuild       | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/dev-python/huawei-lte-api/Manifest 
b/dev-python/huawei-lte-api/Manifest
index 9c61317c8325..bfcf2e24ed79 100644
--- a/dev-python/huawei-lte-api/Manifest
+++ b/dev-python/huawei-lte-api/Manifest
@@ -1 +1,2 @@
 DIST huawei-lte-api-1.5.4.tar.gz 32433 BLAKE2B 
36ba5729f7016c07955f87b85745314f683345e06e174efa90e2fdfd59a8a68c8425b549f8e25293dc2d65d0681a588feb062c3067b275d4e0ed2b56dc3ebbb6
 SHA512 
549373bf6d00aa1fb3f9f6443446520e068ec2c5412c84472b687102b2590cd22a742805f8c7fab67b7a4482e37cb3b03900aaf078ed777c3b1c111194e69da6
+DIST huawei-lte-api-1.6.tar.gz 32617 BLAKE2B 
194d2d983e7bd5bd456d3557b16795cda350ea157545c1ce37aa6d4dd0bace8a8a0c724b9d0ae4315e6f95585598b147a03acb77d84837bf879fa9b83737cafc
 SHA512 
62f70853bba0fbd863e07e2d91309fc15c41508857486d01a02ec30ed513567d0880551744eed5a61517cc33a2f56583df892d22cca45124e95e24605ab23678

diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.6.ebuild 
b/dev-python/huawei-lte-api/huawei-lte-api-1.6.ebuild
new file mode 100644
index 000000000000..fc365b79c31f
--- /dev/null
+++ b/dev-python/huawei-lte-api/huawei-lte-api-1.6.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+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"
+
+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