forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
home-assistant.custom-components.govee-lan: init at unstable-2023-06-10
- Loading branch information
1 parent
4aa225d
commit 1d190eb
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,7 @@ | |
}: | ||
|
||
{ | ||
govee-lan = callPackage ./govee-lan {}; | ||
|
||
prometheus-sensor = callPackage ./prometheus-query {}; | ||
} |
39 changes: 39 additions & 0 deletions
39
pkgs/servers/home-assistant/custom-components/govee-lan/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ lib | ||
, fetchFromGitHub | ||
, govee-led-wez | ||
, home-assistant | ||
}: | ||
|
||
home-assistant.buildCustomComponent { | ||
pname = "govee_lan"; | ||
version = "unstable-2023-06-10"; | ||
format = "other"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "wez"; | ||
repo = "govee-lan-hass"; | ||
rev = "18d8455510d158496f7e5d4f0286f58bd61042bb"; | ||
hash = "sha256-ZhrxEPBEi+Z+2ZOAQ1amhO0tqvhM6tyFQgoRIVNDtXY="; | ||
}; | ||
|
||
dontBuild = true; | ||
|
||
propagatedBuildInputs = [ | ||
govee-led-wez | ||
]; | ||
|
||
# enable when pytest-homeassistant-custom-component is packaged | ||
doCheck = false; | ||
|
||
# nativeCheckInputs = [ | ||
# pytest-homeassistant-custom-component | ||
# pytestCheckHook | ||
# ]; | ||
|
||
meta = with lib; { | ||
description = "Control Govee lights via the LAN API from Home Assistant"; | ||
homepage = "https://github.com/wez/govee-lan-hass"; | ||
maintainers = with maintainers; [ SuperSandro2000 ]; | ||
license = licenses.mit; | ||
}; | ||
} |