oterm: 0.9.3 -> 0.11.1 (#399491)
This commit is contained in:
@@ -1,19 +1,22 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "oterm";
|
||||
version = "0.9.3";
|
||||
version = "0.11.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ggozad";
|
||||
repo = "oterm";
|
||||
tag = version;
|
||||
hash = "sha256-2zzDVUZc+H2tBO5scRUjwz859uaQIbpvCaC0bm4B7NM=";
|
||||
hash = "sha256-b/+siNzmM6RUJ3jv/2dNJJFueejChKde0D5r8J0lTqM=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
@@ -23,6 +26,7 @@ python3Packages.buildPythonApplication rec {
|
||||
"ollama"
|
||||
"packaging"
|
||||
"pillow"
|
||||
"pydantic"
|
||||
"textual"
|
||||
"typer"
|
||||
];
|
||||
@@ -43,14 +47,24 @@ python3Packages.buildPythonApplication rec {
|
||||
python-dotenv
|
||||
rich-pixels
|
||||
textual
|
||||
textual-image
|
||||
textualeffects
|
||||
typer
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "oterm" ];
|
||||
|
||||
# Tests require a HTTP connection to ollama
|
||||
doCheck = false;
|
||||
# Python tests require a HTTP connection to ollama
|
||||
|
||||
# Fails on darwin with: PermissionError: [Errno 1] Operation not permitted: '/var/empty/Library'
|
||||
nativeCheckInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Text-based terminal client for Ollama";
|
||||
|
||||
Reference in New Issue
Block a user