summaryrefslogtreecommitdiff
path: root/pkgs/smartthinq-sensors.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-07-22 06:07:16 -0600
committerAlejandro Soto <alejandro@34project.org>2024-07-25 21:13:21 -0600
commit202d8d418e3194de15abcce23a9629f3b532b7d5 (patch)
tree2851590c60695296f1abc3bd2c2885ee26e09807 /pkgs/smartthinq-sensors.nix
parente1639d69d7d1a1bfbc21aeef284f0c039053dfbe (diff)
sys/home-assistant: enable smartthinq-sensors
Diffstat (limited to '')
-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
+ ];
+}