commit:     e2ab36d07a09f2ef1fca28b6b493f616858a4fab
Author:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  2 21:35:08 2021 +0000
Commit:     Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Tue Mar  2 21:35:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2ab36d0

dev-python/huawei-lte-api: initial import

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>

 dev-python/huawei-lte-api/Manifest                 |  1 +
 .../huawei-lte-api/huawei-lte-api-1.4.17.ebuild    | 30 ++++++++++++++++++++++
 dev-python/huawei-lte-api/metadata.xml             | 12 +++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-python/huawei-lte-api/Manifest 
b/dev-python/huawei-lte-api/Manifest
new file mode 100644
index 00000000000..3cb8cdf775b
--- /dev/null
+++ b/dev-python/huawei-lte-api/Manifest
@@ -0,0 +1 @@
+DIST huawei-lte-api-1.4.17.tar.gz 29441 BLAKE2B 
75615092a1d8ee598a99e9ae7a0567e11a72fad21a8304005364bd21e4ecb9bf9efa9a2d5c8de86c6d7442ec12f06079819c20ca9e2e4646255ede961b1a1275
 SHA512 
bf4a6a43d02b56f0aa799e2936d7fd0afa88da4dc18c152c635b0ccb87a7ca9afcf1fcdee3a37d7ab232d5cd4688e24499ad35a1969d97db405b818cf17d33c4

diff --git a/dev-python/huawei-lte-api/huawei-lte-api-1.4.17.ebuild 
b/dev-python/huawei-lte-api/huawei-lte-api-1.4.17.ebuild
new file mode 100644
index 00000000000..0fe85aaad74
--- /dev/null
+++ b/dev-python/huawei-lte-api/huawei-lte-api-1.4.17.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+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/dicttoxml[${PYTHON_USEDEP}]
+       dev-python/requests[${PYTHON_USEDEP}]
+       dev-python/xmltodict[${PYTHON_USEDEP}]"
+
+python_prepare_all() {
+       # https://github.com/Salamek/huawei-lte-api/issues/86
+       sed "s:'pytest-runner'::" -i setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
+distutils_enable_tests pytest

diff --git a/dev-python/huawei-lte-api/metadata.xml 
b/dev-python/huawei-lte-api/metadata.xml
new file mode 100644
index 00000000000..7c8d9faf048
--- /dev/null
+++ b/dev-python/huawei-lte-api/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Agostino Sarubbo</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">Salamek/huawei-lte-api</remote-id>
+               <remote-id type="pypi">huawei-lte-api</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to