From 6751ac230bc515984f4f1e9aaac19aa1cdbb19bc Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 9 Feb 2026 22:43:04 +0000 Subject: [PATCH] python3Packages.llguidance: skip failing tests on python 3.14 https://github.com/NixOS/nixpkgs/issues/475732 --- pkgs/development/python-modules/llguidance/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/llguidance/default.nix b/pkgs/development/python-modules/llguidance/default.nix index 46d1c530e138..2e230de812f3 100644 --- a/pkgs/development/python-modules/llguidance/default.nix +++ b/pkgs/development/python-modules/llguidance/default.nix @@ -3,6 +3,7 @@ stdenv, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # nativeBuildInputs cargo, @@ -91,6 +92,10 @@ buildPythonPackage (finalAttrs: { "python/torch_tests/test_llamacpp.py" "python/torch_tests/test_tiktoken.py" "scripts/tokenizer_test.py" + ] + ++ lib.optionals (pythonAtLeast "3.14") [ + # RuntimeError: torch.compile is not supported on Python 3.14+ + "python/torch_tests/test_bitmask.py" ]; meta = {