Merge pull request #148180 from mweinelt/esphome

This commit is contained in:
Martin Weinelt 2021-12-01 22:23:33 +01:00 committed by GitHub
commit a77874bb9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -4,11 +4,11 @@
with python3.pkgs; buildPythonPackage rec {
pname = "esphome-dashboard";
version = "20211021.0";
version = "20211201.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-stJ6fUs02XpCN671EztHTLkXd57eMo6472Q1e1/cbHY=";
sha256 = "sha256-/VARM59TI2Ff70Jq0smFMrt4o2G/wKSdcOreLfxMAMQ=";
};
# no tests

View File

@ -2,6 +2,7 @@
, pkgs
, python3
, fetchFromGitHub
, fetchpatch
, platformio
, esptool
, git
@ -16,18 +17,23 @@ let
in
with python.pkgs; buildPythonApplication rec {
pname = "esphome";
version = "2021.10.1";
version = "2021.11.4";
format = "setuptools";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = version;
sha256 = "sha256-zVZantMYtDWkvFrXmX0HpUchmc3T2gbkrMiWGP2ibNc=";
sha256 = "sha256-hPnng3Jkb2FucEOar/MIjvWHKbT3NNxEn6CIr3sd1Ng=";
};
patches = [
# fix missing write permissions on src files before modifing them
./fix-src-permissions.patch
./fix-src-permissions.patch
(fetchpatch {
url = "https://github.com/esphome/esphome/commit/fbe1bca1b9896ba8c8b754c5a4faf790bffd887b.patch";
sha256 = "sha256-Iyc79iL2YkLGD81TbFK3GaCY2L9nTE9mKz6MQSNQWr8=";
})
];
postPatch = ''