From 8d3634eece8972dc51372ca70043fed68dae0157 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 25 Aug 2025 01:22:41 +0200 Subject: [PATCH 1/3] python3Packages.xgrammar: 0.1.22 -> 0.1.23 Diff: https://github.com/mlc-ai/xgrammar/compare/v0.1.22...v0.1.23 Changelog: https://github.com/mlc-ai/xgrammar/releases/tag/v0.1.23 --- 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 9f653da2d179..16961ad77c19 100644 --- a/pkgs/development/python-modules/xgrammar/default.nix +++ b/pkgs/development/python-modules/xgrammar/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { pname = "xgrammar"; - version = "0.1.22"; + version = "0.1.23"; pyproject = true; src = fetchFromGitHub { @@ -33,7 +33,7 @@ buildPythonPackage rec { repo = "xgrammar"; tag = "v${version}"; fetchSubmodules = true; - hash = "sha256-mz6eabETkAzDoPjXE5VJvgrR1vnXXmx3JO4xZRH4TRQ="; + hash = "sha256-asyxJsrsbfFNh1pLBDzM4kdmunQp7/mTDw3L8KuZf4g="; }; patches = [ @@ -78,6 +78,7 @@ buildPythonPackage rec { "test_grammar_matcher_json_schema" "test_grammar_matcher_tag_dispatch" "test_regex_converter" + "test_serialize_compiled_grammar_with_hf_tokenizer" "test_tokenizer_info" # Torch not compiled with CUDA enabled From 4b08c4e4e25ccdc694fcbaae9e3c570e958b3563 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 25 Aug 2025 02:04:50 +0200 Subject: [PATCH 2/3] python3Packages.xgrammar: mark as broken on darwin --- pkgs/development/python-modules/xgrammar/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/xgrammar/default.nix b/pkgs/development/python-modules/xgrammar/default.nix index 16961ad77c19..c7f26b35eb41 100644 --- a/pkgs/development/python-modules/xgrammar/default.nix +++ b/pkgs/development/python-modules/xgrammar/default.nix @@ -95,5 +95,10 @@ buildPythonPackage rec { homepage = "https://xgrammar.mlc.ai"; changelog = "https://github.com/mlc-ai/xgrammar/releases/tag/${src.tag}"; license = lib.licenses.asl20; + badPlatforms = [ + # clang++: error: unsupported option '-ffat-lto-objects' for target 'arm64-apple-darwin' + # idem for 'x86_64-apple-darwin' + lib.systems.inspect.patterns.isDarwin + ]; }; } From 8ff9a3635c4d848d9946de07e1521b1e5cfe8d1e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 25 Aug 2025 02:07:02 +0200 Subject: [PATCH 3/3] python3Packages.xgrammar: mark as broken on aarch64-linux --- pkgs/development/python-modules/xgrammar/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/xgrammar/default.nix b/pkgs/development/python-modules/xgrammar/default.nix index c7f26b35eb41..ef67d4b22abd 100644 --- a/pkgs/development/python-modules/xgrammar/default.nix +++ b/pkgs/development/python-modules/xgrammar/default.nix @@ -96,6 +96,9 @@ buildPythonPackage rec { changelog = "https://github.com/mlc-ai/xgrammar/releases/tag/${src.tag}"; license = lib.licenses.asl20; badPlatforms = [ + # error: ‘operator delete’ called on unallocated object ‘result’ [-Werror=free-nonheap-object] + "aarch64-linux" + # clang++: error: unsupported option '-ffat-lto-objects' for target 'arm64-apple-darwin' # idem for 'x86_64-apple-darwin' lib.systems.inspect.patterns.isDarwin