Merge pull request #127125 from mweinelt/esphome

esphome: 1.18.0 -> 1.19.0
This commit is contained in:
Sandro 2021-06-17 01:14:25 +02:00 committed by GitHub
commit 5835b34bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 2 deletions

View file

@ -0,0 +1,20 @@
{ lib
, python3
}:
with python3.pkgs; buildPythonPackage rec {
pname = "esphome-dashboard";
version = "20210615.0";
src = fetchPypi {
inherit pname version;
sha256 = "07ammr46bipfi4b7nnjkip5l7966wxqhp5n3g2wqf68m3ymx24s9";
};
meta = with lib; {
description = "ESPHome dashboard";
homepage = "https://esphome.io/";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -1,4 +1,5 @@
{ lib
, pkgs
, python3
, fetchFromGitHub
, platformio
@ -6,15 +7,18 @@
, git
}:
let
esphome-dashboard = pkgs.callPackage ./dashboard.nix {};
in
python3.pkgs.buildPythonApplication rec {
pname = "esphome";
version = "1.18.0";
version = "1.19.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1vz3d59wfqssfv1kvd4minlxibr0id06xfyg8956w9s3b22jc5vq";
sha256 = "07brvpsy40jv30h0a0ywrw4bgwajjd37xznw34s8k53y92qs8lfi";
};
postPatch = ''
@ -44,6 +48,7 @@ python3.pkgs.buildPythonApplication rec {
click
colorama
cryptography
esphome-dashboard
ifaddr
paho-mqtt
pillow
@ -66,6 +71,7 @@ python3.pkgs.buildPythonApplication rec {
checkInputs = with python3.pkgs; [
hypothesis
mock
pytest-asyncio
pytest-mock
pytest-sugar
pytestCheckHook
@ -75,6 +81,10 @@ python3.pkgs.buildPythonApplication rec {
$out/bin/esphome --help > /dev/null
'';
passthru = {
dashboard = esphome-dashboard;
};
meta = with lib; {
description = "Make creating custom firmwares for ESP32/ESP8266 super easy";
homepage = "https://esphome.io/";