diff options
author | Сухарик <65870+suhr@users.noreply.github.com> | 2023-12-16 19:39:14 +0300 |
---|---|---|
committer | Сухарик <65870+suhr@users.noreply.github.com> | 2023-12-19 18:41:54 +0300 |
commit | 53c236b5c68289574fe65f85558c1e6da7fb19a3 (patch) | |
tree | 4e6fedf1a7fc93484afe76b2752e94c214207f7a /pkgs/by-name/ot | |
parent | fa5e0f2ed065dd00cfa0347c1421b67da6a5a10e (diff) |
oterm: init at 0.1.17
Diffstat (limited to 'pkgs/by-name/ot')
-rw-r--r-- | pkgs/by-name/ot/oterm/package.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/ot/oterm/package.nix b/pkgs/by-name/ot/oterm/package.nix new file mode 100644 index 0000000000000..e15bdf7c68acb --- /dev/null +++ b/pkgs/by-name/ot/oterm/package.nix @@ -0,0 +1,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"; + }; +} |