mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 17:37:49 +00:00
Merge pull request #311160 from arcnmx/esphome-pillow
esphome: fix+pin optional dependencies
This commit is contained in:
commit
714c88bc0e
@ -41,6 +41,12 @@ python.pkgs.buildPythonApplication rec {
|
||||
postPatch = ''
|
||||
# drop coverage testing
|
||||
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
|
||||
@ -55,6 +61,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
propagatedBuildInputs = with python.pkgs; [
|
||||
aioesphomeapi
|
||||
argcomplete
|
||||
cairosvg
|
||||
click
|
||||
colorama
|
||||
cryptography
|
||||
|
Loading…
Reference in New Issue
Block a user