Skip to content

Commit ac00f6d

Browse files
authored
oterm: 0.9.3 -> 0.11.1 (#399491)
2 parents ceb2b4a + 353f7b0 commit ac00f6d

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

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

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
{
22
lib,
3+
stdenv,
34
python3Packages,
45
fetchFromGitHub,
6+
versionCheckHook,
7+
nix-update-script,
58
}:
69

710
python3Packages.buildPythonApplication rec {
811
pname = "oterm";
9-
version = "0.9.3";
12+
version = "0.11.1";
1013
pyproject = true;
1114

1215
src = fetchFromGitHub {
1316
owner = "ggozad";
1417
repo = "oterm";
1518
tag = version;
16-
hash = "sha256-2zzDVUZc+H2tBO5scRUjwz859uaQIbpvCaC0bm4B7NM=";
19+
hash = "sha256-b/+siNzmM6RUJ3jv/2dNJJFueejChKde0D5r8J0lTqM=";
1720
};
1821

1922
pythonRelaxDeps = [
@@ -23,6 +26,7 @@ python3Packages.buildPythonApplication rec {
2326
"ollama"
2427
"packaging"
2528
"pillow"
29+
"pydantic"
2630
"textual"
2731
"typer"
2832
];
@@ -43,14 +47,24 @@ python3Packages.buildPythonApplication rec {
4347
python-dotenv
4448
rich-pixels
4549
textual
50+
textual-image
4651
textualeffects
4752
typer
4853
];
4954

5055
pythonImportsCheck = [ "oterm" ];
5156

52-
# Tests require a HTTP connection to ollama
53-
doCheck = false;
57+
# Python tests require a HTTP connection to ollama
58+
59+
# Fails on darwin with: PermissionError: [Errno 1] Operation not permitted: '/var/empty/Library'
60+
nativeCheckInputs = lib.optionals (!stdenv.hostPlatform.isDarwin) [
61+
versionCheckHook
62+
];
63+
versionCheckProgramArg = "--version";
64+
65+
passthru = {
66+
updateScript = nix-update-script { };
67+
};
5468

5569
meta = {
5670
description = "Text-based terminal client for Ollama";

0 commit comments

Comments
 (0)