diff --git a/pkgs/development/python-modules/x-transformers/default.nix b/pkgs/development/python-modules/x-transformers/default.nix index 9d9baffdef6f..48b3e453210a 100644 --- a/pkgs/development/python-modules/x-transformers/default.nix +++ b/pkgs/development/python-modules/x-transformers/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + pythonAtLeast, # build-system hatchling, @@ -41,6 +42,9 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook ]; + # RuntimeError: torch.compile is not supported on Python 3.14+ + disabledTests = lib.optionals (pythonAtLeast "3.14") [ "test_up" ]; + pythonImportsCheck = [ "x_transformers" ]; meta = {