From 37ebb291eeaa078e90df16c0eb72be329f43d5b1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 29 Aug 2025 15:40:17 +0000 Subject: [PATCH] python3Packages.llguidance: 0.7.19 -> 1.2.0 --- .../python-modules/llguidance/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/llguidance/default.nix b/pkgs/development/python-modules/llguidance/default.nix index a9aa721066ed..ff1f22856ce2 100644 --- a/pkgs/development/python-modules/llguidance/default.nix +++ b/pkgs/development/python-modules/llguidance/default.nix @@ -4,7 +4,7 @@ buildPythonPackage, fetchFromGitHub, - # build-system + # nativeBuildInputs cargo, pkg-config, rustPlatform, @@ -18,27 +18,26 @@ pytestCheckHook, torch, transformers, - pythonOlder, }: buildPythonPackage rec { pname = "llguidance"; - version = "0.7.19"; + version = "1.2.0"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "llguidance"; tag = "v${version}"; - hash = "sha256-tfTiut8jiGGf2uQLGcC4ieNf4ePFauJZL6vNbWie078="; + hash = "sha256-Fe7cKZotjRexcSHcoT0Y9I3m+dRarhlBOjYR7rdJBRY="; }; cargoDeps = rustPlatform.fetchCargoVendor { - inherit src; - hash = "sha256-I1sjkZgtsBpPVkGL596TjLi9txRmgP5oTIWaM1K5I1E="; + inherit src pname version; + hash = "sha256-//Vjj4QIDcZEPujMfUhZd5nx5pAyF3l3CdNvI/Wi74A="; }; - build-system = [ + nativeBuildInputs = [ cargo pkg-config rustPlatform.cargoSetupHook @@ -88,12 +87,12 @@ buildPythonPackage rec { disabledTestPaths = [ # Require internet access (https://huggingface.co) + "python/torch_tests/test_hf.py" + "python/torch_tests/test_llamacpp.py" + "python/torch_tests/test_tiktoken.py" "scripts/tokenizer_test.py" ]; - # As dynamo is not supported on Python 3.13+, no successful tests remain. - doCheck = pythonOlder "3.13"; - meta = { description = "Super-fast Structured Outputs"; homepage = "https://github.com/guidance-ai/llguidance";