summaryrefslogtreecommitdiff
path: root/pkgs/smartthinq-sensors.nix
blob: 864df5252ef9b1f1cbeaa40fc3009f0964f38de8 (plain)
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
{
  buildHomeAssistantComponent,
  callPackage,
  fetchFromGitHub,
  charset-normalizer,
  pycountry,
  xmltodict,
}: let
  version = "0.39.2";
in
  buildHomeAssistantComponent {
    owner = "ollo69";
    domain = "smartthinq_sensors";
    inherit version;

    src = fetchFromGitHub {
      repo = "ha-smartthinq-sensors";
      owner = "ollo69";

      rev = "v${version}";
      hash = "sha256-tLq4sqeKmjEDDaowA8ouH/mI7jQfq49kkt/a8+40rhQ=";
    };

    dontBuild = true;

    propagatedBuildInputs = [
      charset-normalizer
      pycountry
      xmltodict
    ];
  }