diff --git a/pkgs/tools/misc/esphome/default.nix b/pkgs/tools/misc/esphome/default.nix index f3073c051be9..75004801ddab 100644 --- a/pkgs/tools/misc/esphome/default.nix +++ b/pkgs/tools/misc/esphome/default.nix @@ -19,26 +19,26 @@ let in python.pkgs.buildPythonApplication rec { pname = "esphome"; - version = "2023.12.9"; + version = "2024.2.0"; pyproject = true; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-8SHf6cbPYPZctjJgIuEb7eOJVi5hWNONyRnMXK0iBXc="; + hash = "sha256-k8caA5Q4QcP7H1Nn5yvFsfExVwipAlFSb/DphkzYNtU="; }; nativeBuildInputs = with python.pkgs; [ setuptools argcomplete installShellFiles + pythonRelaxDepsHook ]; - postPatch = '' - # remove all version pinning (E.g tornado==5.1.1 -> tornado) - sed -i -e "s/==[0-9.]*//" requirements.txt + pythonRelaxDeps = true; + postPatch = '' # drop coverage testing sed -i '/--cov/d' pytest.ini ''; @@ -60,6 +60,7 @@ python.pkgs.buildPythonApplication rec { cryptography esphome-dashboard kconfiglib + icmplib paho-mqtt pillow platformio