From 8a7f0b2d2410f09579d7136e704862689cec462e Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 18 Mar 2026 13:31:59 +0100 Subject: [PATCH] python3Packages.traceerite: exclude torch tests Tracerite is a traceback rendering library that relies on torch for testing its tensor rendering at build time. Depending on torch however includes a long and expensive dependency chain that isn't quite worth the hassle. --- pkgs/development/python-modules/tracerite/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tracerite/default.nix b/pkgs/development/python-modules/tracerite/default.nix index cef7d5ce190d..0292b7e41a7e 100644 --- a/pkgs/development/python-modules/tracerite/default.nix +++ b/pkgs/development/python-modules/tracerite/default.nix @@ -7,7 +7,7 @@ html5tagger, pytestCheckHook, beautifulsoup4, - torch, + numpy, }: buildPythonPackage rec { @@ -34,11 +34,16 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook beautifulsoup4 - torch + numpy ]; pythonImportsCheck = [ "tracerite" ]; + disabledTestPaths = [ + # requiring torch to test tensor rendering in tracebacks is too expensive + "tests/test_inspector_torch.py" + ]; + meta = { description = "Tracebacks for Humans in Jupyter notebooks"; homepage = "https://github.com/sanic-org/tracerite";