diff --git a/pkgs/by-name/al/alpaca/package.nix b/pkgs/by-name/al/alpaca/package.nix index 09f48fdf86a9..d7817a81488c 100644 --- a/pkgs/by-name/al/alpaca/package.nix +++ b/pkgs/by-name/al/alpaca/package.nix @@ -16,18 +16,22 @@ vte-gtk4, libspelling, nix-update-script, + blueprint-compiler, + libportal, + webkitgtk_6_0, + pipewire, }: python3Packages.buildPythonApplication rec { pname = "alpaca"; - version = "6.1.7"; + version = "8.1.1"; pyproject = false; # Built with meson src = fetchFromGitHub { owner = "Jeffser"; repo = "Alpaca"; tag = version; - hash = "sha256-9UXaJpkz9F2D490bMKU/xv+rgfrxstm1DuDwpMmydI0="; + hash = "sha256-zZYz7hJocjhxFqsPgUj2jjNLOsoyHWLsZUBmCJyc87M="; }; nativeBuildInputs = [ @@ -38,6 +42,7 @@ python3Packages.buildPythonApplication rec { gobject-introspection wrapGAppsHook4 desktop-file-utils + blueprint-compiler ]; buildInputs = [ @@ -45,24 +50,41 @@ python3Packages.buildPythonApplication rec { gtksourceview5 vte-gtk4 libspelling + libportal + webkitgtk_6_0 + pipewire # pipewiresrc ]; - dependencies = with python3Packages; [ - pygobject3 - requests - pillow - html2text - youtube-transcript-api - pydbus - odfpy - pyicu - matplotlib - openai - markitdown - ]; + dependencies = + with python3Packages; + [ + pygobject3 + requests + pillow + html2text + youtube-transcript-api + pydbus + odfpy + pyicu + matplotlib + openai + markitdown + gst-python + opencv4 + ] + ++ lib.flatten (builtins.attrValues optional-dependencies); - optional-dependencies = { - speech-to-text = [ python3Packages.openai-whisper ]; + optional-dependencies = with python3Packages; { + speech-to-text = [ + openai-whisper + pyaudio + ]; + text-to-speech = [ + kokoro + sounddevice + spacy-models.en_core_web_sm + ]; + image-tools = [ rembg ]; }; dontWrapGApps = true; @@ -75,9 +97,6 @@ python3Packages.buildPythonApplication rec { ollama ] }" - # Declared but not used in src/window.py, for later reference - # https://github.com/flatpak/flatpak/issues/3229 - "--set FLATPAK_DEST ${placeholder "out"}" ]; passthru.updateScript = nix-update-script { };