1{
2 lib,
3 buildHomeAssistantComponent,
4 fetchFromGitHub,
5}:
6
7buildHomeAssistantComponent rec {
8 owner = "Limych";
9 domain = "average";
10 version = "2.4.0";
11
12 src = fetchFromGitHub {
13 inherit owner;
14 repo = "ha-average";
15 tag = version;
16 hash = "sha256-LISGpgfoVxdOeJ9LHzxf7zt49pbIJrLiPkNg/Mf1lxM=";
17 };
18
19 postPatch = ''
20 sed -i "/pip>=/d" custom_components/average/manifest.json
21 '';
22
23 meta = with lib; {
24 changelog = "https://github.com/Limych/ha-average/releases/tag/${version}";
25 description = "Average Sensor for Home Assistant";
26 homepage = "https://github.com/Limych/ha-average";
27 maintainers = with maintainers; [ matthiasbeyer ];
28 license = licenses.cc-by-nc-40;
29 };
30}