From 68be53ef08b8358cf768d26e854ec97dd9a98fe8 Mon Sep 17 00:00:00 2001 From: jaredmontoya <49511278+jaredmontoya@users.noreply.github.com> Date: Wed, 20 May 2026 22:01:44 +0200 Subject: [PATCH] whichllm: init at 0.5.7 --- pkgs/by-name/wh/whichllm/package.nix | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/wh/whichllm/package.nix diff --git a/pkgs/by-name/wh/whichllm/package.nix b/pkgs/by-name/wh/whichllm/package.nix new file mode 100644 index 000000000000..8bdf145dd472 --- /dev/null +++ b/pkgs/by-name/wh/whichllm/package.nix @@ -0,0 +1,55 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + versionCheckHook, +}: + +python3Packages.buildPythonApplication (finalAttrs: { + pname = "whichllm"; + version = "0.5.7"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Andyyyy64"; + repo = "whichllm"; + tag = "v${finalAttrs.version}"; + hash = "sha256-UvhCSC9tKpdgXFCMGn0HWM0kuHhXSauEr/ys/9PUIRs="; + }; + + build-system = with python3Packages; [ hatchling ]; + + dependencies = + with python3Packages; + [ + dbgpu + httpx + nvidia-ml-py + psutil + rich + typer + ] + ++ python3Packages.dbgpu.optional-dependencies.fuzz; + + nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + + disabledTests = [ + # require network access + "test_plan_no_model_found_shows_error" + "test_snippet_no_model_found" + ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + + pythonImportsCheck = [ "whichllm" ]; + + meta = { + description = "Find the local LLM that actually runs and performs best on your hardware. Ranked by real, recency-aware benchmarks, not parameter count. One command, run it instantly"; + homepage = "https://github.com/Andyyyy64/whichllm"; + changelog = "https://github.com/Andyyyy64/whichllm/blob/${finalAttrs.src.tag}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ jaredmontoya ]; + mainProgram = "whichllm"; + }; +})