Merge pull request #274759 from suhr/oterm

oterm: init at 0.1.17
This commit is contained in:
OTABI Tomoya 2023-12-20 10:49:14 +09:00 committed by GitHub
commit 97aff078de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
};
}