Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/huawei-lte-api/
Date: Thu, 31 Mar 2022 11:33:12
Message-Id: 1648726382.d84c3eee50bb14678310ab4305597227ac1f7b10.mgorny@gentoo
1 commit: d84c3eee50bb14678310ab4305597227ac1f7b10
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Mar 31 11:07:35 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Mar 31 11:33:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d84c3eee
7
8 dev-python/huawei-lte-api: Bump to 1.6
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/huawei-lte-api/Manifest | 1 +
13 .../huawei-lte-api/huawei-lte-api-1.6.ebuild | 34 ++++++++++++++++++++++
14 2 files changed, 35 insertions(+)
15
16 diff --git a/dev-python/huawei-lte-api/Manifest b/dev-python/huawei-lte-api/Manifest
17 index 9c61317c8325..bfcf2e24ed79 100644
18 --- a/dev-python/huawei-lte-api/Manifest
19 +++ b/dev-python/huawei-lte-api/Manifest
20 @@ -1 +1,2 @@
21 DIST huawei-lte-api-1.5.4.tar.gz 32433 BLAKE2B 36ba5729f7016c07955f87b85745314f683345e06e174efa90e2fdfd59a8a68c8425b549f8e25293dc2d65d0681a588feb062c3067b275d4e0ed2b56dc3ebbb6 SHA512 549373bf6d00aa1fb3f9f6443446520e068ec2c5412c84472b687102b2590cd22a742805f8c7fab67b7a4482e37cb3b03900aaf078ed777c3b1c111194e69da6
22 +DIST huawei-lte-api-1.6.tar.gz 32617 BLAKE2B 194d2d983e7bd5bd456d3557b16795cda350ea157545c1ce37aa6d4dd0bace8a8a0c724b9d0ae4315e6f95585598b147a03acb77d84837bf879fa9b83737cafc SHA512 62f70853bba0fbd863e07e2d91309fc15c41508857486d01a02ec30ed513567d0880551744eed5a61517cc33a2f56583df892d22cca45124e95e24605ab23678
23
24 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
25 new file mode 100644
26 index 000000000000..fc365b79c31f
27 --- /dev/null
28 +++ b/dev-python/huawei-lte-api/huawei-lte-api-1.6.ebuild
29 @@ -0,0 +1,34 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( pypy3 python3_{8..10} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="API For huawei LAN/WAN LTE Modems"
41 +HOMEPAGE="https://github.com/Salamek/huawei-lte-api"
42 +SRC_URI="https://github.com/Salamek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="MIT"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="
49 + dev-python/pycryptodome[${PYTHON_USEDEP}]
50 + dev-python/requests[${PYTHON_USEDEP}]
51 + dev-python/xmltodict[${PYTHON_USEDEP}]
52 +"
53 +
54 +python_prepare_all() {
55 + # make cryptodome-friendly
56 + sed -i -e 's:pycryptodomex:pycryptodome:' setup.py || die
57 + find -name '*.py' -exec \
58 + sed -i -e 's:Cryptodome:Crypto:g' {} + || die
59 +
60 + distutils-r1_python_prepare_all
61 +}
62 +
63 +distutils_enable_tests pytest