From c58407688b056c507329a8a6cbdf6b9c46b2014d Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sat, 20 Jul 2024 13:31:28 -0600 Subject: sys/home-assistant: add dreame-vacuum --- pkgs/dreame-vacuum.nix | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 pkgs/dreame-vacuum.nix (limited to 'pkgs/dreame-vacuum.nix') diff --git a/pkgs/dreame-vacuum.nix b/pkgs/dreame-vacuum.nix new file mode 100644 index 0000000..1039405 --- /dev/null +++ b/pkgs/dreame-vacuum.nix @@ -0,0 +1,40 @@ +{ buildHomeAssistantComponent +, callPackage +, fetchFromGitHub +, numpy +, paho-mqtt +, pillow +, pybase64 +, pycryptodome +, python-miio +, requests +}: +let + version = "2.0.0b15"; +in +buildHomeAssistantComponent { + owner = "tasshack"; + domain = "dreame_vacuum"; + inherit version; + + src = fetchFromGitHub { + repo = "dreame-vacuum"; + owner = "Tasshack"; + + rev = "v${version}"; + hash = "sha256-ydWirMQsO6DYU5UdygHRXCx8I3M7haYX9zPLela9H7E="; + }; + + dontBuild = true; + + propagatedBuildInputs = [ + numpy + paho-mqtt + pillow + pybase64 + pycryptodome + python-miio + requests + (callPackage ./py-mini-racer.nix { }) + ]; +} -- cgit v1.2.3