From 08ee1fe844ef2f48d04931229c4925d62f37db18 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 1 Jan 2025 17:55:35 +0100 Subject: [PATCH] home-assistant: pin ollama at 0.3.3 Last version before pydantic 2.0 dependency was added. --- pkgs/servers/home-assistant/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index c49ceef951eb2..f8b3d3f88bfda 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -122,6 +122,17 @@ let ]; }); + ollama = super.ollama.overridePythonAttrs (oldAttrs: rec { + version = "0.3.3"; + src = fetchFromGitHub { + owner = "ollama"; + repo = "ollama-python"; + tag = "v${version}"; + hash = "sha256-27OJwPvHBxCdaiHk8EQ2s1OeBzgsrzp1MjgKHNgvz+A="; + }; + dependencies = with self; [ httpx ]; + }); + openhomedevice = super.openhomedevice.overridePythonAttrs (oldAttrs: rec { version = "2.2"; src = fetchFromGitHub {