From 6d3cac67d50669829d80b9bf83156e6d2c45c7ed Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 28 Apr 2025 19:34:52 +0200 Subject: [PATCH 1/2] python312Packages.llguidance: 0.7.11 -> 0.7.19 Diff: https://github.com/guidance-ai/llguidance/compare/refs/tags/v0.7.11...refs/tags/v0.7.19 Changelog: https://github.com/guidance-ai/llguidance/blob/v0.7.19/CHANGELOG.md --- .../python-modules/llguidance/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/llguidance/default.nix b/pkgs/development/python-modules/llguidance/default.nix index 19d2d2253b79..578f9ddeb45f 100644 --- a/pkgs/development/python-modules/llguidance/default.nix +++ b/pkgs/development/python-modules/llguidance/default.nix @@ -23,19 +23,19 @@ buildPythonPackage rec { pname = "llguidance"; - version = "0.7.11"; + version = "0.7.19"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "llguidance"; tag = "v${version}"; - hash = "sha256-d0xwBaWiBBlPrKHpDKDBINBGU+PCfpfnL4FOxNmFvG8="; + hash = "sha256-tfTiut8jiGGf2uQLGcC4ieNf4ePFauJZL6vNbWie078="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit src; - hash = "sha256-UeBgYMYFAVSa6QQIqZ2iY+xIRxQdFBetZ7dIalim+FQ="; + hash = "sha256-I1sjkZgtsBpPVkGL596TjLi9txRmgP5oTIWaM1K5I1E="; }; build-system = [ @@ -75,8 +75,11 @@ buildPythonPackage rec { [ # Require internet access (https://huggingface.co) "test_grammar" - "test_par_grammar" + "test_incomplete_tokenizer" "test_par_errors" + "test_par_grammar" + "test_tokenize_partial_basic" + "test_tokenize_partial_docs" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # torch._inductor.exc.CppCompileError: C++ compile error @@ -95,6 +98,7 @@ buildPythonPackage rec { meta = { description = "Super-fast Structured Outputs"; homepage = "https://github.com/guidance-ai/llguidance"; + changelog = "https://github.com/guidance-ai/llguidance/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ GaetanLepage ]; }; From 254c9126105522a872a7aea87b27582a0df6d179 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 28 Apr 2025 19:49:59 +0200 Subject: [PATCH 2/2] python312Packages.guidance: 0.2.0 -> 0.2.1 Diff: https://github.com/guidance-ai/guidance/compare/refs/tags/0.2.0...refs/tags/0.2.1 Changelog: https://github.com/guidance-ai/guidance/releases/tag/v0.2.1 --- .../python-modules/guidance/default.nix | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/guidance/default.nix b/pkgs/development/python-modules/guidance/default.nix index 9244661e87da..c08c56a68533 100644 --- a/pkgs/development/python-modules/guidance/default.nix +++ b/pkgs/development/python-modules/guidance/default.nix @@ -36,14 +36,14 @@ buildPythonPackage rec { pname = "guidance"; - version = "0.2.0"; + version = "0.2.1"; pyproject = true; src = fetchFromGitHub { owner = "guidance-ai"; repo = "guidance"; tag = version; - hash = "sha256-dZfz/P4+dTHdGFhLAdwX0D/QRdojqNy8+UCbFk0QeTM="; + hash = "sha256-FBnND9kCIVmE/IEz3TNOww8x0EAH6TTBYfKTprqSbDg="; }; build-system = [ @@ -91,11 +91,6 @@ buildPythonPackage rec { disabledTests = [ # require network access - "test_commit_point" - "test_fstring" - "test_fstring_custom" - "test_gpt2" - "test_image_from_bytes" "test_ll_backtrack_stop" "test_ll_dolphin" "test_ll_fighter" @@ -106,26 +101,12 @@ buildPythonPackage rec { "test_ll_pop_tokens" "test_ll_stop_quote_comma" "test_llparser" - "test_local_image" - "test_openai_chat_without_roles" - "test_openai_class_detection" - "test_recursion_error" - "test_remote_image" - "test_remote_image_not_found" - "test_select_simple" "test_str_method_smoke" - "test_token_count" - "test_token_healing" # flaky tests "test_remote_mock_gen" # frequently fails when building packages in parallel ]; - disabledTestPaths = [ - # require network access - "tests/unit/test_tokenizers.py" - ]; - preCheck = '' rm tests/conftest.py '';