Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: python3Packages.xgrammar 0 -> 1 attrpath: python3Packages.xgrammar Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/8kvy2slpak2x1ha2xcm73icpib7bq459-packages.json.drv building '/nix/store/8kvy2slpak2x1ha2xcm73icpib7bq459-packages.json.drv'... Going to be running update for following packages: - python3.13-xgrammar-0.1.33 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - python3.13-xgrammar-0.1.33: UPDATING ... - python3.13-xgrammar-0.1.33: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/xgrammar/default.nix b/pkgs/development/python-modules/xgrammar/default.nix index 4392bd88bbca..e674e4c02f27 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.33"; + version = "0.2.2"; pyproject = true; src = fetchFromGitHub { @@ -35,7 +35,7 @@ buildPythonPackage rec { repo = "xgrammar"; tag = "v${version}"; fetchSubmodules = true; - hash = "sha256-mliAmFBY3eLnUP+2HCRGX36KPUjaxn0Eb+2aKyDwdaM="; + hash = "sha256-f2WISRbva59XoItf5IHV3rVTQMgDoEJGZb+2MM4LAaA="; }; patches = [ No auto update branch exists Received ExitFailure 1 when running Raw command: nix-build --option sandbox true --arg config "{ allowUnfree = true; allowAliases = false; }" --arg overlays "[ ]" -A python3Packages.xgrammar nix build failed. setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/web/tsconfig.json" Running phase: patchPhase @nix { "action": "setPhase", "phase": "patchPhase" } applying patch /nix/store/ahssnqcdmk2lm8hmc50nzsr99gyaww89-0001-fix-find-nanobind-from-python-module.patch can't find file to patch at input line 15 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |From c01e056ee845ae973ec36cc50125492ef8c02c12 Mon Sep 17 00:00:00 2001 |From: Conroy Cheers |Date: Thu, 12 Jun 2025 17:45:27 +1000 |Subject: [PATCH] [Fix] find nanobind from Python module | |--- | cpp/nanobind/CMakeLists.txt | 4 ++++ | pyproject.toml | 2 +- | 2 files changed, 5 insertions(+), 1 deletion(-) | |diff --git a/cpp/nanobind/CMakeLists.txt b/cpp/nanobind/CMakeLists.txt |index 8ea5622..02500ac 100644 |--- a/cpp/nanobind/CMakeLists.txt |+++ b/cpp/nanobind/CMakeLists.txt -------------------------- File to patch: Skip this patch? [y] Skipping patch. 1 out of 1 hunk ignored patching file pyproject.toml Hunk #1 FAILED at 44. 1 out of 1 hunk FAILED -- saving rejects to file pyproject.toml.rej