nixpkgs/pkgs/by-name/ot/oterm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-11 08:37:44 +00:00
{
lib,
python3Packages,
fetchFromGitHub,
2023-12-16 16:39:14 +00:00
}:
python3Packages.buildPythonApplication rec {
pname = "oterm";
version = "0.2.8";
2023-12-16 16:39:14 +00:00
pyproject = true;
2024-03-26 09:32:28 +00:00
2023-12-16 16:39:14 +00:00
src = fetchFromGitHub {
owner = "ggozad";
repo = "oterm";
rev = "refs/tags/${version}";
hash = "sha256-6UFNsEc6bYBrBYfCbeiDfemueeRMEXHGCT8junZVFtk=";
2023-12-16 16:39:14 +00:00
};
pythonRelaxDeps = [
2024-03-07 11:44:10 +00:00
"aiosqlite"
2024-02-11 03:30:10 +00:00
"httpx"
"ollama"
2024-03-26 09:32:28 +00:00
"packaging"
"pillow"
2024-05-10 11:56:38 +00:00
"typer"
];
2024-05-11 08:37:44 +00:00
build-system = with python3Packages; [ poetry-core ];
2024-05-11 08:37:44 +00:00
nativeBuildInputs = with python3Packages; [ pythonRelaxDepsHook ];
2023-12-16 16:39:14 +00:00
propagatedBuildInputs = with python3Packages; [
aiohttp
2023-12-16 16:39:14 +00:00
aiosql
aiosqlite
httpx
ollama
2023-12-16 16:39:14 +00:00
packaging
pillow
pyperclip
python-dotenv
rich-pixels
textual
typer
];
2024-05-11 08:37:44 +00:00
pythonImportsCheck = [ "oterm" ];
2023-12-16 16:39:14 +00:00
# Tests require a HTTP connection to ollama
doCheck = false;
2024-03-26 09:32:28 +00:00
meta = {
2023-12-16 16:39:14 +00:00
description = "A text-based terminal client for Ollama";
homepage = "https://github.com/ggozad/oterm";
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
2024-03-26 09:32:28 +00:00
license = lib.licenses.mit;
2023-12-16 16:39:14 +00:00
mainProgram = "oterm";
2024-03-26 09:32:28 +00:00
maintainers = with lib.maintainers; [ suhr ];
2023-12-16 16:39:14 +00:00
};
}