From cdf5c4eb3b70c9b943a9875506e8c8694d6ef414 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 29 Mar 2026 23:28:34 +0200 Subject: [PATCH] python3Packages.xgrammar: 0.1.31 -> 0.1.33 Fixes #497289 / CVE-2026-25048 https://github.com/mlc-ai/xgrammar/security/advisories/GHSA-7rgv-gqhr-fxg3 https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.33 https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.32 --- pkgs/development/python-modules/xgrammar/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xgrammar/default.nix b/pkgs/development/python-modules/xgrammar/default.nix index adced646dc38..0f0742df1447 100644 --- a/pkgs/development/python-modules/xgrammar/default.nix +++ b/pkgs/development/python-modules/xgrammar/default.nix @@ -27,7 +27,7 @@ buildPythonPackage rec { pname = "xgrammar"; - version = "0.1.31"; + version = "0.1.33"; pyproject = true; src = fetchFromGitHub { @@ -35,7 +35,7 @@ buildPythonPackage rec { repo = "xgrammar"; tag = "v${version}"; fetchSubmodules = true; - hash = "sha256-Baa/DiRoNcIv4UOC+msi4PgfRWnwprnZpLG2v7qB2h4="; + hash = "sha256-mliAmFBY3eLnUP+2HCRGX36KPUjaxn0Eb+2aKyDwdaM="; }; patches = [ @@ -99,6 +99,7 @@ buildPythonPackage rec { disabledTestPaths = [ # Requires internet access "tests/python/test_structural_tag_converter.py" + "tests/python/test_structural_tag_for_model.py" ]; pythonImportsCheck = [ "xgrammar" ];