Unverified Commit ac00f6d0 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

oterm: 0.9.3 -> 0.11.1 (#399491)

parents ceb2b4a2 353f7b0c
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
{
  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";