Skip to content

Commit

Permalink
seagoat: init at 0.50.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lavafroth committed Jan 8, 2025
1 parent 5f736f2 commit d0a7b14
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/by-name/se/seagoat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
fetchFromGitHub,
python3Packages,
ripgrep,
}:

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

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

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

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

nativeCheckInputs = with python3Packages; [
pytestCheckHook
freezegun
pytest-asyncio
pytest-mock
pytest-snapshot
];

postInstall = ''
wrapProgram $out/bin/seagoat-server \
--prefix PATH : "${ripgrep}/bin"
'';

meta = {
description = "Local-first semantic code search engine";
homepage = "https://kantord.github.io/SeaGOAT/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lavafroth ];
mainProgram = "seagoat";
};
}

0 comments on commit d0a7b14

Please sign in to comment.