esphome: fix esp32 build

Closes: #161114
This commit is contained in:
Martin Weinelt 2022-02-21 01:52:05 +01:00
parent d9d37eea31
commit 4ffd1c3aa2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -26,6 +26,15 @@ with python.pkgs; buildPythonApplication rec {
sha256 = "sha256-RG5wTWEpBEC4zTGJ7XTmnjnhSVAllqXjcr3qYbmhqP4=";
};
patches = [
(fetchpatch {
# Fix ESPHOME_USE_SUBPROCESS usage in the ESP32 post build script
# https://github.com/esphome/esphome/pull/3246
url = "https://github.com/esphome/esphome/commit/dcd3f42eda5828c42feadbaa04b703c63899be54.patch";
hash = "sha256-rF1YHRRHVHfoRs492zmIOmRGPUzxx3s673UVx5UJ3+M=";
})
];
postPatch = ''
# remove all version pinning (E.g tornado==5.1.1 -> tornado)
sed -i -e "s/==[0-9.]*//" requirements.txt