diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-07-20 13:31:28 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-07-20 13:31:28 -0600 |
| commit | c58407688b056c507329a8a6cbdf6b9c46b2014d (patch) | |
| tree | 8afc9d5aebc74daca23b97f87ffbf2771822243e /pkgs/dreame-vacuum.nix | |
| parent | cc5cb3792dc2fc0ce62a09a242e3df19b1d90845 (diff) | |
sys/home-assistant: add dreame-vacuum
Diffstat (limited to '')
| -rw-r--r-- | pkgs/dreame-vacuum.nix | 40 |
1 files changed, 40 insertions, 0 deletions
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 { }) + ]; +} |
