From ee239adf013686e672a7d1f50b96e9a7fed59781 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 24 Sep 2025 04:28:33 +0000 Subject: [PATCH] python3Packages.guidance: 0.2.5 -> 0.3.0 --- .../python-modules/guidance/default.nix | 34 ++++++------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index ed279cf885ae..7755dff744a6 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -8,26 +8,20 @@ setuptools, # dependencies - diskcache, guidance-stitch, + jinja2, llguidance, numpy, - ordered-set, - platformdirs, psutil, pydantic, - referencing, requests, - tiktoken, # optional-dependencies openai, - jsonschema, - fastapi, - uvicorn, # tests huggingface-hub, + jsonschema, pytestCheckHook, tokenizers, torch, @@ -36,14 +30,14 @@ buildPythonPackage rec { pname = "guidance"; - version = "0.2.5"; + version = "0.3.0"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "guidance"; tag = version; - hash = "sha256-dTMJOBGirEumbpTanCVZQJATfLxqxmpUCqE7pah97Zw="; + hash = "sha256-ZKHCnLGZdpr/R+vu7crijnKUFc+LMMxIdN9f6hYL7dk="; }; build-system = [ @@ -56,37 +50,31 @@ buildPythonPackage rec { ]; dependencies = [ - diskcache guidance-stitch + jinja2 llguidance numpy - ordered-set - platformdirs psutil pydantic - referencing requests - tiktoken ]; optional-dependencies = { - azureai = [ openai ]; - openai = [ openai ]; - schemas = [ jsonschema ]; - server = [ - fastapi - uvicorn + azureai = [ + # azure-ai-inference + openai ]; + openai = [ openai ]; }; nativeCheckInputs = [ huggingface-hub + jsonschema pytestCheckHook tokenizers torch writableTmpDirAsHomeHook - ] - ++ optional-dependencies.schemas; + ]; enabledTestPaths = [ "tests/unit" ];