From 835ada420ee4bc9eb577e8993bb6633d8714a4fe Mon Sep 17 00:00:00 2001 From: Anish Pallati Date: Wed, 14 Oct 2026 17:51:06 -0400 Subject: [PATCH] python3Packages.llm-sandbox: init at 0.3.45 Signed-off-by: Anish Pallati --- .../python-modules/llm-sandbox/default.nix | 69 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 71 insertions(+) create mode 100644 pkgs/development/python-modules/llm-sandbox/default.nix diff --git a/pkgs/development/python-modules/llm-sandbox/default.nix b/pkgs/development/python-modules/llm-sandbox/default.nix new file mode 100644 index 000000000000..5fd1fd97d299 --- /dev/null +++ b/pkgs/development/python-modules/llm-sandbox/default.nix @@ -0,0 +1,69 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + pyprojectVersionPatchHook, + hatchling, + pydantic, + docker, + kubernetes, + mcp, + podman, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "llm-sandbox"; + version = "0.3.45"; + pyproject = true; + + src = fetchFromGitHub { + owner = "vndee"; + repo = "llm-sandbox"; + tag = finalAttrs.version; + hash = "sha256-t/6e2hepZU8nG9bZSS6vhFF89dSjwsvwxvqn1aaOB3A="; + }; + + build-system = [ hatchling ]; + + nativeBuildInputs = [ pyprojectVersionPatchHook ]; + + dependencies = [ pydantic ]; + + optional-dependencies = { + docker = [ docker ]; + k8s = [ kubernetes ]; + podman = [ + docker + podman + ]; + mcp-docker = [ + docker + mcp + ]; + mcp-k8s = [ + kubernetes + mcp + ]; + mcp-podman = [ + docker + mcp + podman + ]; + }; + + nativeCheckInputs = [ + pytestCheckHook + ] + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; + + pythonImportsCheck = [ "llm_sandbox" ]; + + meta = { + description = "Lightweight and portable LLM sandbox runtime"; + homepage = "https://github.com/vndee/llm-sandbox"; + changelog = "https://github.com/vndee/llm-sandbox/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ anish ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92356c454a6c..3840d2f05230 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10222,6 +10222,8 @@ self: super: with self; { llm-perplexity = callPackage ../development/python-modules/llm-perplexity { }; + llm-sandbox = callPackage ../development/python-modules/llm-sandbox { }; + llm-sentence-transformers = callPackage ../development/python-modules/llm-sentence-transformers { }; llm-templates-fabric = callPackage ../development/python-modules/llm-templates-fabric { };