mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-25 05:23:54 +00:00
home-assistant-custom-components.emporia_vue: init at 0.8.3
This commit is contained in:
parent
3b01c53180
commit
57b6384903
@ -4,6 +4,8 @@
|
||||
{
|
||||
adaptive_lighting = callPackage ./adaptive_lighting {};
|
||||
|
||||
emporia_vue = callPackage ./emporia_vue {};
|
||||
|
||||
govee-lan = callPackage ./govee-lan {};
|
||||
|
||||
gpio = callPackage ./gpio {};
|
||||
|
@ -0,0 +1,36 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildHomeAssistantComponent
|
||||
, pyemvue
|
||||
}:
|
||||
|
||||
buildHomeAssistantComponent rec {
|
||||
owner = "presto8";
|
||||
domain = "emporia_vue";
|
||||
version = "0.8.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "magico13";
|
||||
repo = "ha-emporia-vue";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-6NrRuBjpulT66pVUfW9ujULL5HSzfgyic1pKEBRupNA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyemvue
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace custom_components/emporia_vue/manifest.json --replace-fail 'pyemvue==0.17.1' 'pyemvue>=0.17.1'
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Reads data from the Emporia Vue energy monitor into Home Assistant";
|
||||
homepage = "https://github.com/magico13/ha-emporia-vue";
|
||||
changelog = "https://github.com/magico13/ha-emporia-vue/releases/tag/v${version}";
|
||||
maintainers = with maintainers; [ presto8 ];
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user