esphome: fix optional dependencies
Avoid runtime version mismatch errors such as: > Please update your pillow installation to 10.2.0. > (pip install "pillow==10.2.0").
This commit is contained in:
@@ -41,6 +41,12 @@ python.pkgs.buildPythonApplication rec {
|
|||||||
postPatch = ''
|
postPatch = ''
|
||||||
# drop coverage testing
|
# drop coverage testing
|
||||||
sed -i '/--cov/d' pytest.ini
|
sed -i '/--cov/d' pytest.ini
|
||||||
|
|
||||||
|
# ensure component dependencies are available
|
||||||
|
cat requirements_optional.txt >> requirements.txt
|
||||||
|
# relax strict runtime version check
|
||||||
|
substituteInPlace esphome/components/font/__init__.py \
|
||||||
|
--replace-fail "10.2.0" "${python.pkgs.pillow.version}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Remove esptool and platformio from requirements
|
# Remove esptool and platformio from requirements
|
||||||
@@ -55,6 +61,7 @@ python.pkgs.buildPythonApplication rec {
|
|||||||
propagatedBuildInputs = with python.pkgs; [
|
propagatedBuildInputs = with python.pkgs; [
|
||||||
aioesphomeapi
|
aioesphomeapi
|
||||||
argcomplete
|
argcomplete
|
||||||
|
cairosvg
|
||||||
click
|
click
|
||||||
colorama
|
colorama
|
||||||
cryptography
|
cryptography
|
||||||
|
|||||||
Reference in New Issue
Block a user