2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
python3Packages,
|
|
|
|
fetchFromGitHub,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "oterm";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.2.9";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ggozad";
|
|
|
|
repo = "oterm";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-UOZxktgpuTxkE1+DVnd5T1Fye+2SS2hUDmWtCaGEol0=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-04-21 15:54:59 +00:00
|
|
|
"aiosqlite"
|
2024-02-29 20:09:43 +00:00
|
|
|
"httpx"
|
2024-05-15 15:35:15 +00:00
|
|
|
"ollama"
|
2024-04-21 15:54:59 +00:00
|
|
|
"packaging"
|
2024-05-15 15:35:15 +00:00
|
|
|
"pillow"
|
2024-06-20 14:57:18 +00:00
|
|
|
"textual"
|
2024-05-15 15:35:15 +00:00
|
|
|
"typer"
|
2024-02-07 01:22:34 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = with python3Packages; [ poetry-core ];
|
|
|
|
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
dependencies = with python3Packages; [
|
2024-05-15 15:35:15 +00:00
|
|
|
aiohttp
|
2024-01-02 11:29:13 +00:00
|
|
|
aiosql
|
|
|
|
aiosqlite
|
2024-05-15 15:35:15 +00:00
|
|
|
httpx
|
|
|
|
ollama
|
2024-01-02 11:29:13 +00:00
|
|
|
packaging
|
2024-02-07 01:22:34 +00:00
|
|
|
pillow
|
2024-05-15 15:35:15 +00:00
|
|
|
pyperclip
|
|
|
|
python-dotenv
|
|
|
|
rich-pixels
|
|
|
|
textual
|
|
|
|
typer
|
2024-02-07 01:22:34 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "oterm" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
# Tests require a HTTP connection to ollama
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Text-based terminal client for Ollama";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/ggozad/oterm";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ suhr ];
|
2024-06-20 14:57:18 +00:00
|
|
|
mainProgram = "oterm";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
}
|