summaryrefslogtreecommitdiff
path: root/pkgs/smartthinq-sensors.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/smartthinq-sensors.nix')
-rw-r--r--pkgs/smartthinq-sensors.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/smartthinq-sensors.nix b/pkgs/smartthinq-sensors.nix
new file mode 100644
index 0000000..20a2cdc
--- /dev/null
+++ b/pkgs/smartthinq-sensors.nix
@@ -0,0 +1,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
+ ];
+}