@@ -2,6 +2,7 @@
22, pkgs
33, python3
44, fetchFromGitHub
5+, fetchpatch
56, platformio
67, esptool
78, git
@@ -16,18 +17,23 @@ let
1617in
1718with python.pkgs; buildPythonApplication rec {
1819 pname = "esphome";
19− version = "2021.10.1";
20+ version = "2021.11.4";
21+ format = "setuptools";
2022
2123 src = fetchFromGitHub {
2224 owner = pname;
2325 repo = pname;
2426 rev = version;
25− sha256 = "sha256-zVZantMYtDWkvFrXmX0HpUchmc3T2gbkrMiWGP2ibNc=";
27+ sha256 = "sha256-hPnng3Jkb2FucEOar/MIjvWHKbT3NNxEn6CIr3sd1Ng=";
2628 };
2729
2830 patches = [
2931 # fix missing write permissions on src files before modifing them
30− ./fix-src-permissions.patch
32+ ./fix-src-permissions.patch
33+ (fetchpatch {
34+ url = "https://github.com/esphome/esphome/commit/fbe1bca1b9896ba8c8b754c5a4faf790bffd887b.patch";
35+ sha256 = "sha256-Iyc79iL2YkLGD81TbFK3GaCY2L9nTE9mKz6MQSNQWr8=";
36+ })
3137 ];
3238
3339 postPatch = ''