Merge pull request #193460 from r-ryantm/auto-update/esphome

This commit is contained in:
Martin Weinelt 2022-09-29 14:59:45 +02:00 committed by GitHub
commit 1c4e3c9f14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 4 deletions

View File

@ -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

View File

@ -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; {

View File

@ -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
''