Gaetan Lepage
2025-03-07 14:32:00 +01:00
parent 16e32c3306
commit c6e2327f62
+35 -18
View File
@@ -2,50 +2,65 @@
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
nest-asyncio
ollama
psutil
pygments
requests
nest-asyncio
waitress
psutil
stop-words
waitress
];
nativeCheckInputs = with python3Packages; [
pytestCheckHook
freezegun
pytest-asyncio
pytest-mock
pytest-snapshot
gitMinimal
ripgrep
];
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";