mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-embedded/esptool: add 4.9.0
Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Part-of: https://github.com/gentoo/gentoo/pull/42789 Closes: https://github.com/gentoo/gentoo/pull/42789 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST esptool-4.8.1.tar.gz 6933695 BLAKE2B ffd8e6aa4c8460765b21c3542b9e953a4e0810e88e1771f02c80ed7145b20623d4b3922268680cc250c64422ab8b90920261af5ef56b9abc14b60b6a10cb6c59 SHA512 21fe654826a38ba40fe128eadde1ad92c22e5a011651ce0f8eb5806358c9f0b33f185fe760c1a3eee19cb59b894531ebea8213498841f0a1c0724048ec88d213
|
||||
DIST esptool-4.9.0.tar.gz 5944315 BLAKE2B 8ddb37c20c7337e2768f1175a981f23eaabc61ef7851b928ce20f172257b812c73b46ea4db3c46d688d230dd58772e5e43786c70b1e6a9ff9297b26a4ed10e7f SHA512 1d969a79ca43d63af6407f4b1544076943cc427766734781904285dfc304e67a5db09ec7de71e8b9e29734341bd8f1a8491f8f8a22325c5229df22da85497071
|
||||
|
||||
71
dev-embedded/esptool/esptool-4.9.0.ebuild
Normal file
71
dev-embedded/esptool/esptool-4.9.0.ebuild
Normal file
@@ -0,0 +1,71 @@
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1 eapi9-ver
|
||||
|
||||
DESCRIPTION="Utility to communicate with the ROM bootloader in Espressif ESP8266 and ESP32"
|
||||
HOMEPAGE="https://github.com/espressif/esptool"
|
||||
SRC_URI="https://github.com/espressif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/bitstring[${PYTHON_USEDEP}]
|
||||
dev-python/cryptography[${PYTHON_USEDEP}]
|
||||
>=dev-python/ecdsa-0.16.0[${PYTHON_USEDEP}]
|
||||
dev-python/intelhex[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/reedsolo[${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
')
|
||||
test? ( $(python_gen_cond_dep '
|
||||
dev-python/cffi[${PYTHON_USEDEP}]
|
||||
dev-python/requests[${PYTHON_USEDEP}]
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
') )
|
||||
"
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# need real hardware connected
|
||||
test/test_esptool.py
|
||||
test/test_espefuse.py
|
||||
test/test_esptool_sdm.py
|
||||
# need network
|
||||
test/test_uf2_ids.py
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# test_espsecure_hsm.py needs setup of a "Soft HSM" or real hardware. remove.
|
||||
rm test/test_espsecure_hsm.py || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if ver_replacing -lt 4; then
|
||||
ewarn "${P} - new 4.x release with breaking changes:"
|
||||
ewarn " - Public API has been defined by limiting access to internals that have been refactored into multiple source files"
|
||||
ewarn " - If active security features are detected, the default behavior changes to prevent unintentional bricking"
|
||||
ewarn " - Flash parameters in an image header can now be changed only when no SHA256 digest is appended"
|
||||
ewarn " - The ESP8684 alias has been removed, ESP32-C2 has to be used"
|
||||
ewarn " - Megabit flash sizes have been deprecated, use megabyte units from now on"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user