about summary refs log tree commit diff
path: root/pkgs/servers/home-assistant/custom-components/epex_spot/default.nix
blob: 136c36010442d9a8f30d1d06e7d762add4b077c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, fetchFromGitHub
, buildHomeAssistantComponent
, beautifulsoup4
}:

buildHomeAssistantComponent rec {
  owner = "mampfes";
  domain = "epex_spot";
  version = "2.3.8";

  src = fetchFromGitHub {
    owner = "mampfes";
    repo = "ha_epex_spot";
    rev = "refs/tags/${version}";
    hash = "sha256-BwNDI2OMF6bXqFcdr0AJgj9Gb6Uz8BWOfE7M4jqzQJc=";
  };

  propagatedBuildInputs = [
    beautifulsoup4
  ];

  #skip phases without activity
  dontConfigure = true;
  doCheck = false;
  dontBuild = true;

  meta = with lib; {
    changelog = "https://github.com/mampfes/ha_epex_spot/releases/tag/${version}";
    description = "This component adds electricity prices from stock exchange EPEX Spot to Home Assistant";
    homepage = "https://github.com/mampfes/ha_epex_spot";
    maintainers = with maintainers; [ _9R ];
    license = licenses.mit;
  };
}