2024-09-19 22:16:11 -04:00
|
|
|
{
|
|
|
|
extended-ollama-conversation-src,
|
|
|
|
buildHomeAssistantComponent,
|
|
|
|
python3Packages,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
|
|
|
|
manifest = fromJSON (readFile "${extended-ollama-conversation-src}/custom_components/extended_ollama_conversation/manifest.json");
|
|
|
|
in
|
|
|
|
buildHomeAssistantComponent {
|
|
|
|
owner = "TheNimaj";
|
|
|
|
|
|
|
|
inherit (manifest) domain version;
|
|
|
|
|
|
|
|
src = extended-ollama-conversation-src;
|
|
|
|
|
2024-09-22 20:22:37 -04:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace ./custom_components/extended_ollama_conversation/manifest.json \
|
|
|
|
--replace-warn "openai~=1.3.8" "openai>=1.3.8"
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
ollama
|
2024-09-19 22:16:11 -04:00
|
|
|
openai
|
|
|
|
];
|
|
|
|
}
|