depot/third_party/nixpkgs/pkgs/by-name/ot/oterm/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

60 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
}:
python3Packages.buildPythonApplication rec {
pname = "oterm";
version = "0.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "ggozad";
repo = "oterm";
rev = "refs/tags/${version}";
hash = "sha256-0wiUqpjCHGHOuJJaDzpmMGtCBgUI5Sk29DrOgbLj018=";
};
pythonRelaxDeps = [
"aiosqlite"
"httpx"
"ollama"
"packaging"
"pillow"
"textual"
"typer"
];
build-system = with python3Packages; [ poetry-core ];
dependencies = with python3Packages; [
aiohttp
aiosql
aiosqlite
httpx
ollama
packaging
pillow
pyperclip
python-dotenv
rich-pixels
textual
typer
];
pythonImportsCheck = [ "oterm" ];
# Tests require a HTTP connection to ollama
doCheck = false;
meta = {
description = "Text-based terminal client for Ollama";
homepage = "https://github.com/ggozad/oterm";
changelog = "https://github.com/ggozad/oterm/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ suhr ];
mainProgram = "oterm";
};
}