mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, python3Packages
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "oterm";
|
|
version = "0.2.4";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ggozad";
|
|
repo = "oterm";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-p0ns+8qmcyX4gcg0CfYdDMn1Ie0atVBuQbVQoDRQ9+c=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"aiosqlite"
|
|
"pillow"
|
|
"httpx"
|
|
"packaging"
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
ollama
|
|
textual
|
|
typer
|
|
python-dotenv
|
|
httpx
|
|
aiosql
|
|
aiosqlite
|
|
pyperclip
|
|
packaging
|
|
rich-pixels
|
|
pillow
|
|
aiohttp
|
|
];
|
|
|
|
nativeBuildInputs = with python3Packages; [
|
|
poetry-core
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"oterm"
|
|
];
|
|
|
|
# Tests require a HTTP connection to ollama
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
|
|
description = "A text-based terminal client for Ollama";
|
|
homepage = "https://github.com/ggozad/oterm";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "oterm";
|
|
maintainers = with lib.maintainers; [ suhr ];
|
|
};
|
|
}
|