1 |
commit: e5b43e9c3b5083981a76f8f5a02e48763e7d756c |
2 |
Author: Matthew Smith <matt <AT> offtopica <DOT> uk> |
3 |
AuthorDate: Fri Jan 14 10:36:42 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 28 08:00:52 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5b43e9c |
7 |
|
8 |
dev-embedded/platformio: Relax zeroconf requirement |
9 |
|
10 |
Closes: https://bugs.gentoo.org/831181 |
11 |
Signed-off-by: Matthew Smith <matt <AT> offtopica.uk> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/23788 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
dev-embedded/platformio/platformio-5.2.4-r1.ebuild | 80 ++++++++++++++++++++++ |
16 |
1 file changed, 80 insertions(+) |
17 |
|
18 |
diff --git a/dev-embedded/platformio/platformio-5.2.4-r1.ebuild b/dev-embedded/platformio/platformio-5.2.4-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000000..16e980cb005a |
21 |
--- /dev/null |
22 |
+++ b/dev-embedded/platformio/platformio-5.2.4-r1.ebuild |
23 |
@@ -0,0 +1,80 @@ |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python3_{8,9,10} ) |
30 |
+DISTUTILS_SINGLE_IMPL=1 |
31 |
+ |
32 |
+inherit distutils-r1 udev |
33 |
+ |
34 |
+DESCRIPTION="An open source ecosystem for IoT development" |
35 |
+HOMEPAGE="https://platformio.org/" |
36 |
+SRC_URI="https://github.com/platformio/platformio-core/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+S="${WORKDIR}"/${PN}-core-${PV} |
38 |
+ |
39 |
+LICENSE="BSD" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ $(python_gen_cond_dep ' |
45 |
+ >=dev-python/aiofiles-0.8.0[${PYTHON_USEDEP}] |
46 |
+ dev-python/ajsonrpc[${PYTHON_USEDEP}] |
47 |
+ <dev-python/bottle-0.13[${PYTHON_USEDEP}] |
48 |
+ >=dev-python/click-7.1.2[${PYTHON_USEDEP}] |
49 |
+ <dev-python/click-9[${PYTHON_USEDEP}] |
50 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/pyserial-3[${PYTHON_USEDEP}] |
52 |
+ <dev-python/pyserial-4[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/requests-2.4[${PYTHON_USEDEP}] |
54 |
+ <dev-python/requests-3[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/semantic_version-2.8.1[${PYTHON_USEDEP}] |
56 |
+ <dev-python/semantic_version-3[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/tabulate-0.8.3[${PYTHON_USEDEP}] |
58 |
+ <dev-python/tabulate-1[${PYTHON_USEDEP}] |
59 |
+ dev-python/twisted[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/pyelftools-0.25[${PYTHON_USEDEP}] |
61 |
+ <dev-python/pyelftools-1[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/marshmallow-2.20.5[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/starlette-0.17[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/uvicorn-0.16[${PYTHON_USEDEP}] |
65 |
+ dev-python/wsproto[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/zeroconf-0.37[${PYTHON_USEDEP}] |
67 |
+ ') |
68 |
+ virtual/udev" |
69 |
+DEPEND="virtual/udev" |
70 |
+BDEPEND="test? ( $(python_gen_cond_dep 'dev-python/jsondiff[${PYTHON_USEDEP}]') )" |
71 |
+ |
72 |
+# This list could be refined a bit to have individual tests which need network |
73 |
+# (within EPYTEST_DESELECT) but so many need it that it doesn't seem worth it right now. |
74 |
+EPYTEST_IGNORE=( |
75 |
+ # Requires network access |
76 |
+ tests/test_builder.py |
77 |
+ tests/package/test_manager.py |
78 |
+ tests/package/test_manifest.py |
79 |
+ tests/commands/test_platform.py |
80 |
+ tests/commands/test_test.py |
81 |
+ tests/commands/test_ci.py |
82 |
+ tests/commands/test_init.py |
83 |
+ tests/commands/test_lib.py |
84 |
+ tests/commands/test_lib_complex.py |
85 |
+ tests/commands/test_boards.py |
86 |
+ tests/commands/test_check.py |
87 |
+ tests/test_ino2cpp.py |
88 |
+ tests/test_maintenance.py |
89 |
+ tests/test_misc.py |
90 |
+) |
91 |
+ |
92 |
+distutils_enable_tests pytest |
93 |
+ |
94 |
+src_prepare() { |
95 |
+ # Allow newer versions of zeroconf, Bug #831181. |
96 |
+ sed -i '/zeroconf/s/==/>=/' "${S}"/setup.py |
97 |
+ default |
98 |
+} |
99 |
+ |
100 |
+src_install() { |
101 |
+ distutils-r1_src_install |
102 |
+ udev_dorules scripts/99-platformio-udev.rules |
103 |
+} |