git.iko.soy/typeable/nixpkgs
on master help sign in
esphome: 1.18.0 -> 1.19.0
commit43f4cfd381b4dbf81f307972b697b41f92a9cd15 authorMartin Weinelt <hexa@darmstadt.ccc.de> dateWed 16 Jun 2021, 21:01 (5 years ago) parent78a6cf4
2 files changed+32−2
pkgs/tools/misc/esphome/dashboard.nix+20 pkgs/tools/misc/esphome/default.nix+12−2
pkgs/tools/misc/esphome/dashboard.nixnew file+20
@@ -0,0 +1,20 @@
1+{ lib
2+, python3
3+}:
4+
5+with python3.pkgs; buildPythonPackage rec {
6+ pname = "esphome-dashboard";
7+ version = "20210615.0";
8+
9+ src = fetchPypi {
10+ inherit pname version;
11+ sha256 = "07ammr46bipfi4b7nnjkip5l7966wxqhp5n3g2wqf68m3ymx24s9";
12+ };
13+
14+ meta = with lib; {
15+ description = "ESPHome dashboard";
16+ homepage = "https://esphome.io/";
17+ license = with licenses; [ asl20 ];
18+ maintainers = with maintainers; [ hexa ];
19+ };
20+}
pkgs/tools/misc/esphome/default.nix+12−2
@@ -1,4 +1,5 @@
11{ lib
2+, pkgs
23, python3
34, fetchFromGitHub
45, platformio
@@ -6,15 +7,18 @@
67, git
78}:
89
10+let
11+ esphome-dashboard = pkgs.callPackage ./dashboard.nix {};
12+in
913python3.pkgs.buildPythonApplication rec {
1014 pname = "esphome";
11− version = "1.18.0";
15+ version = "1.19.0";
1216
1317 src = fetchFromGitHub {
1418 owner = pname;
1519 repo = pname;
1620 rev = "v${version}";
17− sha256 = "1vz3d59wfqssfv1kvd4minlxibr0id06xfyg8956w9s3b22jc5vq";
21+ sha256 = "07brvpsy40jv30h0a0ywrw4bgwajjd37xznw34s8k53y92qs8lfi";
1822 };
1923
2024 postPatch = ''
@@ -44,6 +48,7 @@ python3.pkgs.buildPythonApplication rec {
4448 click
4549 colorama
4650 cryptography
51+ esphome-dashboard
4752 ifaddr
4853 paho-mqtt
4954 pillow
@@ -66,6 +71,7 @@ python3.pkgs.buildPythonApplication rec {
6671 checkInputs = with python3.pkgs; [
6772 hypothesis
6873 mock
74+ pytest-asyncio
6975 pytest-mock
7076 pytest-sugar
7177 pytestCheckHook
@@ -75,6 +81,10 @@ python3.pkgs.buildPythonApplication rec {
7581 $out/bin/esphome --help > /dev/null
7682 '';
7783
84+ passthru = {
85+ dashboard = esphome-dashboard;
86+ };
87+
7888 meta = with lib; {
7989 description = "Make creating custom firmwares for ESP32/ESP8266 super easy";
8090 homepage = "https://esphome.io/";