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.1 KiB
Nix
Raw Normal View History

2023-12-16 16:39:14 +00:00
{ lib
, python3Packages
, fetchFromGitHub
}:
python3Packages.buildPythonApplication rec {
pname = "oterm";
2024-03-26 09:32:28 +00:00
version = "0.2.4";
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}";
2024-03-26 09:32:28 +00:00
hash = "sha256-p0ns+8qmcyX4gcg0CfYdDMn1Ie0atVBuQbVQoDRQ9+c=";
2023-12-16 16:39:14 +00:00
};
pythonRelaxDeps = [
2024-03-07 11:44:10 +00:00
"aiosqlite"
"pillow"
2024-02-11 03:30:10 +00:00
"httpx"
2024-03-26 09:32:28 +00:00
"packaging"
];
2023-12-16 16:39:14 +00:00
propagatedBuildInputs = with python3Packages; [
2024-03-26 09:32:28 +00:00
ollama
2023-12-16 16:39:14 +00:00
textual
typer
python-dotenv
httpx
aiosql
aiosqlite
pyperclip
packaging
rich-pixels
pillow
aiohttp
];
nativeBuildInputs = with python3Packages; [
poetry-core
pythonRelaxDepsHook
];
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 = {
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
2023-12-16 16:39:14 +00:00
description = "A text-based terminal client for Ollama";
homepage = "https://github.com/ggozad/oterm";
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
};
}