nixos-configs/legacyPackages/hass-components/extended-ollama-conversation.nix

35 lines
951 B
Nix
Raw Normal View History

{
extended-ollama-conversation-src,
buildHomeAssistantComponent,
fetchFromGitHub,
python3Packages,
...
}: let
inherit (builtins) fromJSON readFile;
manifest = fromJSON (readFile "${extended-ollama-conversation-src}/custom_components/extended_ollama_conversation/manifest.json");
openai = python3Packages.openai.overrideAttrs (o: rec {
chore: update flake.lock Flake Inputs: • Updated input 'astal': 'github:Aylur/astal/71ee1ea' (2024-09-14) → 'github:Aylur/astal/36adb5a' (2024-09-18) • Updated input 'discord-overlay': 'github:matt1432/discord-nightly-overlay/1975161' (2024-09-14) → 'github:matt1432/discord-nightly-overlay/64c50d0' (2024-09-18) • Updated input 'gpu-screen-recorder-src': 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=4a8544e' (2024-09-15) → 'git+https://repo.dec05eba.com/gpu-screen-recorder?ref=refs/heads/master&rev=6e73e40' (2024-09-18) • Updated input 'home-manager': 'github:nix-community/home-manager/a9c9cc6' (2024-09-15) → 'github:nix-community/home-manager/d2493de' (2024-09-17) • Updated input 'hyprland': 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=9e35656&submodules=1' (2024-09-15) → 'git+https://github.com/hyprwm/Hyprland?ref=refs/heads/main&rev=e6cf643&submodules=1' (2024-09-18) • Updated input 'hyprland/aquamarine': 'github:hyprwm/aquamarine/e4a1320' (2024-09-07) → 'github:hyprwm/aquamarine/752d0fb' (2024-09-18) • Updated input 'jovian': 'github:Jovian-Experiments/Jovian-NixOS/02cf60c' (2024-09-12) → 'github:Jovian-Experiments/Jovian-NixOS/f7a1bb0' (2024-09-18) • Updated input 'nix-index-db': 'github:Mic92/nix-index-database/0a2fba6' (2024-09-15) → 'github:Mic92/nix-index-database/c1b0fa0' (2024-09-16) • Updated input 'nixd': 'github:nix-community/nixd/f6ca743' (2024-08-22) → 'github:nix-community/nixd/e2f0d90' (2024-09-18) • Updated input 'nixpkgs-wayland': 'github:nix-community/nixpkgs-wayland/a36467e' (2024-09-15) → 'github:nix-community/nixpkgs-wayland/aaedb02' (2024-09-18) • Updated input 'sops-nix': 'github:Mic92/sops-nix/f30b1ba' (2024-09-13) → 'github:Mic92/sops-nix/e2d404a' (2024-09-16) Docker Images: • vegardit/gitea-act-runner dind-latest: sha256:acc510a4754aa871dcaac69396055fea3117b5378a36efd9fbf3b3db542fa81a → sha256:378efec2a8f9e17874965b6a03ea935b0195eb85bdf60305eee994f684134f27 • ghcr.io/linuxserver/bazarr latest: sha256:476c315f0381d0b8c7921fbf3116b65e96ae32128df5fd27600e97213b862809 → sha256:71f545e4a6cfda02798fd531bfc27b14cbf7345bb28fe503467fb1ab13c3bfbc • ghcr.io/linuxserver/prowlarr latest: sha256:c1318191d5211ac7462c754422eafe350ed0de61c4160065a420896068ec1ccc → sha256:bddc64a17aa38972f4c032f67efc3bf0a498883257e615a2d807ca44550cebf0 Firefox Addons: darkreader: 4.9.89 -> 4.9.92
2024-09-18 17:47:10 -04:00
name = "${o.pname}-${version}";
version = "1.3.8";
src = fetchFromGitHub {
owner = "openai";
repo = "openai-python";
rev = "refs/tags/v${version}";
hash = "sha256-yU0XWEDYl/oBPpYNFg256H0Hn5AaJiP0vOQhbRLnAxQ=";
};
disabledTests = o.disabledTests ++ ["test_retrying_timeout_errors_doesnt_leak" "test_retrying_status_errors_doesnt_leak"];
});
in
buildHomeAssistantComponent {
owner = "TheNimaj";
inherit (manifest) domain version;
src = extended-ollama-conversation-src;
propagatedBuildInputs = [python3Packages.ollama openai];
}