Unverified Commit 1137c471 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

seagoat: 0.50.1 -> 0.54.3 (#387910)

parents 7175b2d9 c6e2327f
Loading
Loading
Loading
Loading
+35 −18
Original line number Diff line number Diff line
@@ -2,49 +2,64 @@
  lib,
  fetchFromGitHub,
  python3Packages,
  ripgrep,

  # tests
  gitMinimal,
  ripgrep,
  writableTmpDirAsHomeHook,
}:

python3Packages.buildPythonApplication rec {
  pname = "seagoat";
  version = "0.50.1";
  version = "0.54.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kantord";
    repo = "SeaGOAT";
    tag = "v${version}";
    hash = "sha256-tf3elcKXUwBqtSStDksOaSN3Q66d72urrG/Vab2M4f0=";
    hash = "sha256-uSOFak5fQkj4noYRgzjOFV/wlRdsMLDbNpb4ud3+gE4=";
  };

  build-system = [ python3Packages.poetry-core ];

  pythonRelaxDeps = [
    "chromadb"
    "psutil"
  ];

  dependencies = with python3Packages; [
    appdirs
    blessed
    chardet
    flask
    deepmerge
    chromadb
    deepmerge
    flask
    gitpython
    halo
    jsonschema
    pygments
    requests
    nest-asyncio
    waitress
    ollama
    psutil
    pygments
    requests
    stop-words
    waitress
  ];

  nativeCheckInputs = with python3Packages; [
  nativeCheckInputs =
    with python3Packages;
    [
      pytestCheckHook
      freezegun
      pytest-asyncio
      pytest-mock
      pytest-snapshot
    ]
    ++ [
      gitMinimal
      ripgrep
      writableTmpDirAsHomeHook
    ];

  disabledTests = import ./failing_tests.nix;
@@ -55,10 +70,11 @@ python3Packages.buildPythonApplication rec {
  ];

  preCheck = ''
    export HOME=$(mktemp -d)
    git init
  '';

  __darwinAllowLocalNetworking = true;

  postInstall = ''
    wrapProgram $out/bin/seagoat-server \
      --prefix PATH : "${ripgrep}/bin"
@@ -67,6 +83,7 @@ python3Packages.buildPythonApplication rec {
  meta = {
    description = "Local-first semantic code search engine";
    homepage = "https://kantord.github.io/SeaGOAT/";
    changelog = "https://github.com/kantord/SeaGOAT/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ lavafroth ];
    mainProgram = "seagoat";