blob: e15bdf7c68acbe7aa21465b848f026420e7c17d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "oterm";
version = "0.1.17";
pyproject = true;
src = fetchFromGitHub {
owner = "ggozad";
repo = "oterm";
rev = "refs/tags/${version}";
hash = "sha256-huDxrhFtG2QoytJQHIikOP+LgYiKbj0XxbgS9bz6SHw=";
};
propagatedBuildInputs = with python3Packages; [
textual
typer
python-dotenv
httpx
aiosql
aiosqlite
pyperclip
packaging
rich-pixels
];
nativeBuildInputs = with python3Packages; [ poetry-core ];
# 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";
};
}
|