Files
nixpkgs/pkgs/by-name/se/seagoat/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

102 lines
1.8 KiB
Nix

{
lib,
fetchFromGitHub,
python3Packages,
# tests
gitMinimal,
ripgrep,
writableTmpDirAsHomeHook,
versionCheckHook,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "seagoat";
version = "1.0.26";
pyproject = true;
src = fetchFromGitHub {
owner = "kantord";
repo = "SeaGOAT";
tag = "v${version}";
hash = "sha256-XXKLvm3sEYgfLojtYKI3i8o3HERdH4+FRSo28FBqONg=";
};
build-system = [ python3Packages.poetry-core ];
pythonRelaxDeps = [
"chromadb"
"psutil"
"setuptools"
];
dependencies = with python3Packages; [
appdirs
blessed
chardet
chromadb
deepmerge
flask
gitpython
halo
jsonschema
nest-asyncio
ollama
psutil
pygments
requests
stop-words
waitress
];
nativeCheckInputs =
with python3Packages;
[
pytestCheckHook
freezegun
pytest-asyncio
pytest-mock
pytest-snapshot
]
++ [
gitMinimal
ripgrep
versionCheckHook
writableTmpDirAsHomeHook
];
versionCheckProgramArg = "--version";
disabledTests = import ./failing_tests.nix;
# require network access
disabledTestPaths = [
"tests/test_chroma.py"
];
preCheck = ''
git init
'';
__darwinAllowLocalNetworking = true;
postInstall = ''
wrapProgram $out/bin/seagoat-server \
--prefix PATH : "${ripgrep}/bin"
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Local-first semantic code search engine";
homepage = "https://kantord.github.io/SeaGOAT/";
changelog = "https://github.com/kantord/SeaGOAT/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lavafroth ];
mainProgram = "seagoat";
};
}