Unverified Commit a33603a3 authored by Kajus Naujokaitis's avatar Kajus Naujokaitis
Browse files

alpaca: 6.1.7 -> 8.1.1

parent c22effff
Loading
Loading
Loading
Loading
+39 −20
Original line number Diff line number Diff line
@@ -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,9 +50,14 @@ python3Packages.buildPythonApplication rec {
    gtksourceview5
    vte-gtk4
    libspelling
    libportal
    webkitgtk_6_0
    pipewire # pipewiresrc
  ];

  dependencies = with python3Packages; [
  dependencies =
    with python3Packages;
    [
      pygobject3
      requests
      pillow
@@ -59,10 +69,22 @@ python3Packages.buildPythonApplication rec {
      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 { };