structuredAttrs is enabled Sourcing python-remove-tests-dir-hook Sourcing python-catch-conflicts-hook.sh Sourcing python-remove-bin-bytecode-hook.sh Sourcing pypa-build-hook Using pypaBuildPhase Sourcing python-runtime-deps-check-hook Using pythonRuntimeDepsCheckHook Sourcing pypa-install-hook Using pypaInstallPhase Sourcing python-imports-check-hook.sh Using pythonImportsCheckPhase Sourcing python-metadata-check-hook.sh Using pythonMetadataCheckPhase Sourcing python-namespaces-hook Sourcing python-catch-conflicts-hook.sh Sourcing pytest-check-hook Using pytestCheckPhase Running phase: unpackPhase unpacking source archive /nix/store/a1f6ldxhyk0bn219palilkp3r4907pm7-source source root is source Executing cargoSetupPostUnpackHook Finished cargoSetupPostUnpackHook setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/toktrie_tiktoken/src/lib.rs" Running phase: patchPhase Executing cargoSetupPostPatchHook Validating consistency between /build/source/Cargo.lock and /build/llguidance-1.8.0-vendor/Cargo.lock Finished cargoSetupPostPatchHook Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase Executing maturinBuildHook maturinBuildHook flags: --jobs=20 --offline --target aarch64-unknown-linux-gnu --manylinux off --strip --out /build/source/dist --interpreter python3.13 --release 📦 Including license file `LICENSE` 🍹 Building a mixed python/rust project 🐍 Found CPython 3.13 at /nix/store/s81lcrdqrwmvnqdl8h7m711xafjdx17f-python3-3.13.15/bin/python3.13 🔗 Found pyo3 bindings with abi3-py3.9 support 📡 Using build options bindings from pyproject.toml Compiling proc-macro2 v1.0.95 Compiling unicode-ident v1.0.18 Compiling memchr v2.7.5 Compiling libc v0.2.174 Compiling serde v1.0.219 Compiling cfg-if v1.0.1 Compiling getrandom v0.3.3 Compiling regex-syntax v0.8.5 Compiling zerocopy v0.8.26 Compiling crossbeam-utils v0.8.21 Compiling anyhow v1.0.98 Compiling target-lexicon v0.13.4 Compiling serde_json v1.0.140 Compiling itoa v1.0.15 Compiling hashbrown v0.15.4 Compiling ident_case v1.0.1 Compiling equivalent v1.0.2 Compiling ryu v1.0.20 Compiling fnv v1.0.7 Compiling strsim v0.11.1 Compiling version_check v0.9.5 Compiling smallvec v1.15.1 Compiling heck v0.5.0 Compiling rayon-core v1.12.1 Compiling once_cell v1.21.3 Compiling autocfg v1.5.0 Compiling rustversion v1.0.21 Compiling either v1.15.0 Compiling parking_lot_core v0.9.11 Compiling ref-cast v1.0.24 Compiling bytemuck v1.23.1 Compiling paste v1.0.15 Compiling bit-vec v0.6.3 Compiling minimal-lexical v0.2.1 Compiling ahash v0.8.12 Compiling bit-vec v0.8.0 Compiling thiserror v2.0.12 Compiling scopeguard v1.2.0 Compiling aho-corasick v1.1.3 Compiling esaxx-rs v0.1.10 Compiling bit-set v0.5.3 Compiling nom v7.1.3 Compiling lock_api v0.4.13 Compiling itertools v0.14.0 Compiling bit-set v0.8.0 Compiling static_assertions v1.1.0 Compiling borrow-or-share v0.2.2 Compiling base64 v0.13.1 Compiling macro_rules_attribute-proc_macro v0.2.2 Compiling unicode-segmentation v1.12.0 Compiling indexmap v2.10.0 Compiling crossbeam-epoch v0.9.18 Compiling pyo3-build-config v0.29.0 Compiling quote v1.0.40 Compiling log v0.4.27 Compiling unicode-normalization-alignments v0.1.12 Compiling syn v2.0.104 Compiling crossbeam-deque v0.8.6 Compiling macro_rules_attribute v0.2.2 Compiling castaway v0.2.3 Compiling llguidance v1.8.0 (/build/source/parser) Compiling lazy_static v1.5.0 Compiling percent-encoding v2.3.1 Compiling rand_core v0.9.3 Compiling unicode_categories v0.1.1 Compiling base64 v0.22.1 Compiling hashbrown v0.17.1 Compiling rustc-hash v1.1.0 Compiling parking_lot v0.12.4 Compiling pyo3-ffi v0.29.0 Compiling pyo3 v0.29.0 Compiling rayon v1.10.0 Compiling regex-automata v0.4.9 Compiling ppv-lite86 v0.2.21 Compiling rand_chacha v0.9.0 Compiling rand v0.9.4 Compiling darling_core v0.20.11 Compiling pyo3-macros-backend v0.29.0 Compiling rayon-cond v0.4.0 Compiling serde_derive v1.0.219 Compiling bytemuck_derive v1.9.3 Compiling ref-cast-impl v1.0.24 Compiling monostate-impl v0.1.14 Compiling thiserror-impl v2.0.12 Compiling strum_macros v0.28.0 Compiling regex v1.11.1 Compiling fancy-regex v0.13.0 Compiling bstr v1.12.0 Compiling fancy-regex v0.14.0 Compiling darling_macro v0.20.11 Compiling tiktoken-rs v0.7.0 Compiling darling v0.20.11 Compiling derive_builder_core v0.20.2 Compiling strum v0.28.0 Compiling derive_builder_macro v0.20.2 Compiling derive_builder v0.20.2 Compiling pyo3-macros v0.29.0 Compiling fluent-uri v0.3.2 Compiling monostate v0.1.14 Compiling spm_precompiled v0.1.4 Compiling dary_heap v0.3.7 Compiling compact_str v0.9.0 Compiling derivre v0.3.12 Compiling toktrie v1.8.0 (/build/source/toktrie) Compiling tokenizers v0.21.2 Compiling referencing v0.29.1 Compiling toktrie_tiktoken v1.8.0 (/build/source/toktrie_tiktoken) Compiling toktrie_hf_tokenizers v1.8.0 (/build/source/toktrie_hf_tokenizers) Compiling llguidance_py v1.8.0 (/build/source/python_ext) Finished `release` profile [optimized + debuginfo] target(s) in 46.85s 🚉 Overriding platform tag from _PYTHON_HOST_PLATFORM environment variable as linux_aarch64. 📦 Built wheel for abi3 Python ≥ 3.9 to /build/source/dist/llguidance-1.8.0-cp39-abi3-linux_aarch64.whl Finished maturinBuildHook buildPhase completed in 48 seconds Running phase: pythonRuntimeDepsCheckHook Executing pythonRuntimeDepsCheck Checking runtime dependencies for llguidance-1.8.0-cp39-abi3-linux_aarch64.whl Finished executing pythonRuntimeDepsCheck Running phase: installPhase Executing pypaInstallPhase Successfully installed llguidance-1.8.0-cp39-abi3-linux_aarch64.whl Finished executing pypaInstallPhase Running phase: pythonOutputDistPhase Executing pythonOutputDistPhase Finished executing pythonOutputDistPhase Running phase: fixupPhase shrinking RPATHs of ELF executables and libraries in /nix/store/4gr4ycw9aqb322mbdkyyxdvrg9fskcqv-python3.13-llguidance-1.8.0-dist checking for references to /build/ in /nix/store/4gr4ycw9aqb322mbdkyyxdvrg9fskcqv-python3.13-llguidance-1.8.0-dist... patching script interpreter paths in /nix/store/4gr4ycw9aqb322mbdkyyxdvrg9fskcqv-python3.13-llguidance-1.8.0-dist shrinking RPATHs of ELF executables and libraries in /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0 shrinking /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0/lib/python3.13/site-packages/llguidance/_lib.abi3.so checking for references to /build/ in /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0... patching script interpreter paths in /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0 /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0/lib/python3.13/site-packages/llguidance/gbnf_to_lark.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/s81lcrdqrwmvnqdl8h7m711xafjdx17f-python3-3.13.15/bin/python3" stripping (with command strip and flags -S -p) in /nix/store/q84p9zhxwmmbwswvr8f7mgyly059sfmv-python3.13-llguidance-1.8.0/lib Executing pythonRemoveTestsDir Finished executing pythonRemoveTestsDir Running phase: installCheckPhase no Makefile or custom installCheckPhase, doing nothing Running phase: pythonCatchConflictsPhase Running phase: pythonRemoveBinBytecodePhase Running phase: pythonImportsCheckPhase Executing pythonImportsCheckPhase Check whether the following modules can be imported: llguidance llguidance._lib Running phase: pythonMetadataCheckPhase Executing pythonMetadataCheckPhase Running phase: pytestCheckPhase Executing pytestCheckPhase pytest flags: -m pytest --ignore-glob=python/torch_tests/test_hf.py --ignore-glob=python/torch_tests/test_llamacpp.py --ignore-glob=python/torch_tests/test_tiktoken.py --ignore-glob=scripts/tokenizer_test.py -k not\ \(test_grammar\)\ and\ not\ \(test_incomplete_tokenizer\)\ and\ not\ \(test_par_errors\)\ and\ not\ \(test_par_grammar\)\ and\ not\ \(test_tokenize_partial_basic\)\ and\ not\ \(test_tokenize_partial_docs\) ============================= test session starts ============================== platform linux -- Python 3.13.15, pytest-9.1.1, pluggy-1.6.0 rootdir: /build/source configfile: pyproject.toml plugins: anyio-4.14.2 collected 25 items / 2 deselected / 23 selected python/torch_tests/test_bitmask.py ..ss [ 17%] python/torch_tests/test_matcher.py ................... [100%] =============================== warnings summary =============================== ../../nix/store/rgbk13h7ws87imm1mccvyvmpk34as3y4-python3.13-torch-2.13.0/lib/python3.13/site-packages/torch/jit/_script.py:365: 14 warnings /nix/store/rgbk13h7ws87imm1mccvyvmpk34as3y4-python3.13-torch-2.13.0/lib/python3.13/site-packages/torch/jit/_script.py:365: DeprecationWarning: `torch.jit.script_method` is deprecated. Please switch to `torch.compile` or `torch.export`. warnings.warn( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ========== 21 passed, 2 skipped, 2 deselected, 14 warnings in 20.58s =========== Finished executing pytestCheckPhase Running phase: pytestcachePhase Running phase: pytestRemoveBytecodePhase