2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "oterm";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.1.22";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ggozad";
|
|
|
|
repo = "oterm";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-hRbPlRuwM3NspTNd3mPhVxPJl8zA9qyFwDGNKH3Slag=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pillow"
|
|
|
|
];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
textual
|
|
|
|
typer
|
|
|
|
python-dotenv
|
|
|
|
httpx
|
|
|
|
aiosql
|
|
|
|
aiosqlite
|
|
|
|
pyperclip
|
|
|
|
packaging
|
|
|
|
rich-pixels
|
2024-02-07 01:22:34 +00:00
|
|
|
pillow
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
|
|
poetry-core
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"oterm"
|
2024-01-02 11:29:13 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Tests require a HTTP connection to ollama
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A text-based terminal client for Ollama";
|
|
|
|
homepage = "https://github.com/ggozad/oterm";
|
|
|
|
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ suhr ];
|
|
|
|
mainProgram = "oterm";
|
|
|
|
};
|
|
|
|
}
|