mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-embedded/esptool: add 5.2.0
PYTHON_COMPAT update: remove python3_11, add python3_14 Closes: https://bugs.gentoo.org/973820 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Part-of: https://github.com/gentoo/gentoo/pull/45848 Closes: https://github.com/gentoo/gentoo/pull/45848 Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
committed by
Pacho Ramos
parent
96a0a36b58
commit
ddc8f6253f
@@ -1,2 +1,3 @@
|
||||
DIST esptool-4.10.0.tar.gz 5961194 BLAKE2B 153d57ec90dee53a237dcdf694e6add85d380421a30a4d2ff7c13f73a6511fb120d2a6071adc7327e6ce3cb82c496bd33c972a5739b6d565369e60453be73238 SHA512 98a5329d50286766a11c86b371cb4c383a9fa6de87dbdbc97afc8def63a9f6aba7b633467fb896ba93638006ac73cb1a243973b7daddbc7959e0988d0c00eb6d
|
||||
DIST esptool-5.1.0.tar.gz 5904981 BLAKE2B e6f49ff15da617cac8f7a3c2558598430b53a1267632c4e06180ec121d063bf9b80ee5d646207ffa4da00c82fd23a890e07322174afa4d14aa75d1900414442f SHA512 07caaf96225d5b6cd6668cbd6022cf564e7b25f54ed2f2ed6345660c3d4f686ca1489937acd806b90ac30fd3bc15389116776932caa50d091404204d2712d954
|
||||
DIST esptool-5.2.0.tar.gz 6056496 BLAKE2B cc036196b9a8a84f9f44c5d5f44796d531510f967946c984f6b5c74c1bd8558ffd611f3f59fce9bcde3d7ab5f161e6ef4bc5520804ebec774bfcc60d61051f67 SHA512 df62952b12abb9d47a7f5a46ea00ce1bd59f32c73017e6b13f31eb2d197caec17810ff358e4a538ed9be958000de88bc97c5c74c41c06f9340e784aec5b6f7e6
|
||||
|
||||
76
dev-embedded/esptool/esptool-5.2.0.ebuild
Normal file
76
dev-embedded/esptool/esptool-5.2.0.ebuild
Normal file
@@ -0,0 +1,76 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
|
||||
inherit distutils-r1 eapi9-ver
|
||||
|
||||
DESCRIPTION="Serial utility for flashing and interacting with 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/intelhex[${PYTHON_USEDEP}]
|
||||
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/reedsolo[${PYTHON_USEDEP}]
|
||||
dev-python/rich-click[${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
BDEPEND="
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/wheel[${PYTHON_USEDEP}]
|
||||
')
|
||||
test? ( $(python_gen_cond_dep '
|
||||
dev-python/pyelftools[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
') )
|
||||
"
|
||||
EPYTEST_PLUGINS=( )
|
||||
distutils_enable_tests pytest
|
||||
EPYTEST_DESELECT=(
|
||||
# need real hardware connected
|
||||
test/test_esptool.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
|
||||
if ver_replacing -lt 5; then
|
||||
ewarn "${P} - new 5.x release with breaking changes:"
|
||||
ewarn " - The .py suffix is deprecated for the following scripts:"
|
||||
ewarn " - esptool"
|
||||
ewarn " - espefuse"
|
||||
ewarn " - espsecure"
|
||||
ewarn " - esp_rfc2217_server"
|
||||
ewarn " - execute-scripts command is removed"
|
||||
ewarn ""
|
||||
ewarn "The official announcement of the changes can be found here: https://developer.espressif.com/blog/2025/04/esptool-v5/"
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user