diff --git a/pkgs/tools/misc/esphome/dashboard.nix b/pkgs/tools/misc/esphome/dashboard.nix index a6a85808f352..6dcee4967e10 100644 --- a/pkgs/tools/misc/esphome/dashboard.nix +++ b/pkgs/tools/misc/esphome/dashboard.nix @@ -5,11 +5,12 @@ buildPythonPackage rec { pname = "esphome-dashboard"; - version = "20220920.1"; + version = "20220925.0"; + format = "setuptools"; src = fetchPypi { inherit pname version; - sha256 = "sha256-qmutcnsz3utVUmVZZEYYiemOGdQ4Ima2ueD4LyYaOdU="; + hash = "sha256-jlHS+Hdu1FWV/nJiiferOdyThWyIc21uAFFlh4BD+M4="; }; # no tests diff --git a/pkgs/tools/misc/esphome/default.nix b/pkgs/tools/misc/esphome/default.nix index afefc18e18b3..3ea44a8e30c6 100644 --- a/pkgs/tools/misc/esphome/default.nix +++ b/pkgs/tools/misc/esphome/default.nix @@ -15,14 +15,14 @@ let in with python.pkgs; buildPythonApplication rec { pname = "esphome"; - version = "2022.9.1"; + version = "2022.9.2"; format = "setuptools"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-j6qzCzPiChvO1WR+ZaVILgONcdOzwlE4TBDnI9R6FjM="; + hash = "sha256-PVJZ2cOguXIh96246AVofTg1ZWqWJPFcDXlPk3Rn+Cs="; }; postPatch = '' @@ -91,6 +91,7 @@ with python.pkgs; buildPythonApplication rec { passthru = { dashboard = esphome-dashboard; + updateScript = callPackage ./update.nix {}; }; meta = with lib; { diff --git a/pkgs/tools/misc/esphome/update.nix b/pkgs/tools/misc/esphome/update.nix new file mode 100644 index 000000000000..ea4137662054 --- /dev/null +++ b/pkgs/tools/misc/esphome/update.nix @@ -0,0 +1,12 @@ +{ writeShellScript +, lib +, git +, nix-update +}: + +writeShellScript "update-esphome" '' + PATH=${lib.makeBinPath [ git nix-update ]} + + nix-update esphome.dashboard + nix-update esphome +''