2024-09-02 22:14:49 -04:00
|
|
|
{
|
|
|
|
buildHomeAssistantComponent,
|
|
|
|
home-llm-src,
|
|
|
|
python3Packages,
|
|
|
|
...
|
|
|
|
}: let
|
2024-09-11 13:07:51 -04:00
|
|
|
inherit (builtins) fromJSON readFile;
|
|
|
|
|
|
|
|
manifest = fromJSON (readFile "${home-llm-src}/custom_components/llama_conversation/manifest.json");
|
2024-09-02 22:14:49 -04:00
|
|
|
in
|
|
|
|
buildHomeAssistantComponent {
|
|
|
|
owner = "acon96";
|
|
|
|
|
|
|
|
inherit (manifest) domain version;
|
|
|
|
|
|
|
|
src = home-llm-src;
|
|
|
|
|
2024-09-04 11:53:51 -04:00
|
|
|
# FIXME: https://github.com/acon96/home-llm/issues/214
|
2024-09-02 22:14:49 -04:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace ./custom_components/llama_conversation/manifest.json \
|
2024-09-04 11:53:51 -04:00
|
|
|
--replace-warn "huggingface-hub==0.23.0" "huggingface-hub>=0.23.0"
|
2024-09-02 22:14:49 -04:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
huggingface-hub
|
|
|
|
requests
|
|
|
|
webcolors
|
|
|
|
];
|
|
|
|
}
|