Skip to content

Commit f937f8e

Browse files
authored
esphome: 2025.7.5 -> 2025.8.0 (#435292)
2 parents d8b0eea + a0fd445 commit f937f8e

File tree

6 files changed

+89
-5
lines changed

6 files changed

+89
-5
lines changed

pkgs/by-name/es/esphome/dashboard.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@
1313

1414
buildPythonPackage rec {
1515
pname = "esphome-dashboard";
16-
version = "20250514.0";
16+
version = "20250814.0";
1717
pyproject = true;
1818

1919
src = fetchFromGitHub {
2020
owner = "esphome";
2121
repo = "dashboard";
2222
rev = "refs/tags/${version}";
23-
hash = "sha256-t0+YlITnxgnLrK/SN0bSmMIv3djR9DKMlnFrR9Btwx8=";
23+
hash = "sha256-WQsyv3s3LKKOwYEkX5GcAPnbH061q1ts7TU4HU6I8CI=";
2424
};
2525

2626
npmDeps = fetchNpmDeps {
2727
inherit src;
28-
hash = "sha256-Uiz26kPxoz32t/GRppiYiVBVwWcQqUzPr0kScVUZak8=";
28+
hash = "sha256-ShuJPS7qP2XZ3lwJrFeKRkQwX7tvyiC/0L7sGn0cMn8=";
2929
};
3030

3131
build-system = [ setuptools ];
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/esphome/components/esp32/post_build.py.script b/esphome/components/esp32/post_build.py.script
2+
index c99521423..e29821d7e 100644
3+
--- a/esphome/components/esp32/post_build.py.script
4+
+++ b/esphome/components/esp32/post_build.py.script
5+
@@ -88,8 +88,6 @@ def merge_factory_bin(source, target, env):
6+
output_path = firmware_path.with_suffix(".factory.bin")
7+
python_exe = f'"{env.subst("$PYTHONEXE")}"'
8+
cmd = [
9+
- python_exe,
10+
- "-m",
11+
"esptool",
12+
"--chip",
13+
chip,

pkgs/by-name/es/esphome/package.nix

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,24 @@ let
3434
in
3535
python.pkgs.buildPythonApplication rec {
3636
pname = "esphome";
37-
version = "2025.7.5";
37+
version = "2025.8.0";
3838
pyproject = true;
3939

4040
src = fetchFromGitHub {
4141
owner = "esphome";
4242
repo = "esphome";
4343
tag = version;
44-
hash = "sha256-f6HBgjg6yiFCQk6hIvQMYw+5/KjIVvUJaK+c/xmIseM=";
44+
hash = "sha256-LOHsiSiqeCLrKLcVfAiPZl54aDTaYuKw073h0XMDiTE=";
4545
};
4646

47+
patches = [
48+
# Use the esptool executable directly in the ESP32 post build script, that
49+
# gets executed by platformio. This is required, because platformio uses its
50+
# own python environment through `python -m esptool` and then fails to find
51+
# the esptool library.
52+
./esp32-post-build-esptool-reference.patch
53+
];
54+
4755
build-system = with python.pkgs; [
4856
setuptools
4957
];

pkgs/development/embedded/platformio/core.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ buildPythonApplication rec {
7272
click
7373
click-completion
7474
colorama
75+
esp-idf-size
7576
git
7677
intelhex
7778
lockfile
@@ -81,6 +82,7 @@ buildPythonApplication rec {
8182
pyserial
8283
pyyaml
8384
requests
85+
rich-click
8486
semantic-version
8587
setuptools
8688
spdx-license-list-data.json
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
fetchFromGitHub,
5+
6+
# build-system
7+
setuptools,
8+
9+
# dependencies
10+
pyyaml,
11+
rich,
12+
13+
# tests
14+
esptool,
15+
jsonschema,
16+
pytestCheckHook,
17+
distutils,
18+
}:
19+
20+
buildPythonPackage rec {
21+
pname = "esp-idf-size";
22+
version = "1.7.1";
23+
pyproject = true;
24+
25+
src = fetchFromGitHub {
26+
owner = "espressif";
27+
repo = "esp-idf-size";
28+
tag = "v${version}";
29+
hash = "sha256-dgvmrwnaipudKyNJ/xFAwvfjGmtDRnFbXxI2VuC/SKo=";
30+
};
31+
32+
build-system = [ setuptools ];
33+
34+
dependencies = [
35+
pyyaml
36+
rich
37+
];
38+
39+
doCheck = false; # requires ESP-IDF
40+
41+
nativeCheckInputs = [
42+
distutils
43+
esptool
44+
jsonschema
45+
pytestCheckHook
46+
];
47+
48+
pythonImportsCheck = [
49+
"esp_idf_size"
50+
];
51+
52+
meta = {
53+
description = "";
54+
homepage = "https://github.com/espressif/esp-idf-size";
55+
changelog = "https://github.com/espressif/esp-idf-size/blob/${src.tag}/CHANGELOG.md";
56+
license = lib.licenses.asl20;
57+
maintainers = with lib.maintainers; [ hexa ];
58+
};
59+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4739,6 +4739,8 @@ self: super: with self; {
47394739

47404740
esig = callPackage ../development/python-modules/esig { };
47414741

4742+
esp-idf-size = callPackage ../development/python-modules/esp-idf-size { };
4743+
47424744
espeak-phonemizer = callPackage ../development/python-modules/espeak-phonemizer { };
47434745

47444746
esper = callPackage ../development/python-modules/esper { };

0 commit comments

Comments
 (0)