1 |
commit: 1c0a8fba6a386811263598433bc536d64f219eec |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Thu Feb 3 08:43:17 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 4 13:53:50 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c0a8fba |
7 |
|
8 |
dev-embedded/esptool: add python:3.10 compat |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
dev-embedded/esptool/esptool-3.2-r1.ebuild | 46 ++++++++++++++++++++++++++++++ |
15 |
1 file changed, 46 insertions(+) |
16 |
|
17 |
diff --git a/dev-embedded/esptool/esptool-3.2-r1.ebuild b/dev-embedded/esptool/esptool-3.2-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 000000000000..8cdeb0f03135 |
20 |
--- /dev/null |
21 |
+++ b/dev-embedded/esptool/esptool-3.2-r1.ebuild |
22 |
@@ -0,0 +1,46 @@ |
23 |
+# Copyright 2021-2022 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=8 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{8..10} ) |
29 |
+DISTUTILS_SINGLE_IMPL=1 |
30 |
+ |
31 |
+inherit distutils-r1 |
32 |
+ |
33 |
+DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32" |
34 |
+HOMEPAGE="https://github.com/espressif/esptool" |
35 |
+SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-2+" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
40 |
+IUSE="test" |
41 |
+RESTRICT="!test? ( test )" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ $(python_gen_cond_dep ' |
45 |
+ dev-python/bitstring[${PYTHON_USEDEP}] |
46 |
+ dev-python/cryptography[${PYTHON_USEDEP}] |
47 |
+ >=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}] |
48 |
+ dev-python/pyserial[${PYTHON_USEDEP}] |
49 |
+ dev-python/reedsolomon[${PYTHON_USEDEP}] |
50 |
+ ') |
51 |
+" |
52 |
+BDEPEND=" |
53 |
+ $(python_gen_cond_dep ' |
54 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
55 |
+ ') |
56 |
+ test? ( $(python_gen_cond_dep ' |
57 |
+ dev-python/coverage[${PYTHON_USEDEP}] |
58 |
+ dev-python/pyelftools[${PYTHON_USEDEP}] |
59 |
+ ') ) |
60 |
+" |
61 |
+ |
62 |
+python_test() { |
63 |
+ "${EPYTHON}" test/test_imagegen.py || die "imagegen test failed with ${EPYTHON}" |
64 |
+ "${EPYTHON}" test/test_espsecure.py || die "espsecure test failed with ${EPYTHON}" |
65 |
+ "${EPYTHON}" test/test_espefuse_host.py || die "espefuse_host test failed with ${EPYTHON}" |
66 |
+ "${EPYTHON}" test/test_merge_bin.py || die "espefuse_host test failed with ${EPYTHON}" |
67 |
+ # test/test_rfc2217.py test/test_esptool.py and test/test_espefuse.py need real hardware connected |
68 |
+} |