From 644e671d8012402b148df40d644cb2ba7892d034 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 8 Mar 2023 18:32:56 +0100 Subject: [PATCH] python310Packages.lightning-utilities: Disable failing doctests One asks for torch, but providing torch breaks another test, that expects torch not to be available. The other does not `import os`, but tries to use bits from it. --- .../python-modules/lightning-utilities/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/lightning-utilities/default.nix b/pkgs/development/python-modules/lightning-utilities/default.nix index 69a8f5434c12..cd5fb226e95d 100644 --- a/pkgs/development/python-modules/lightning-utilities/default.nix +++ b/pkgs/development/python-modules/lightning-utilities/default.nix @@ -49,6 +49,10 @@ buildPythonPackage rec { "lightning_utilities.core.imports.RequirementCache" "lightning_utilities.core.imports.compare_version" "lightning_utilities.core.imports.get_dependency_min_version_spec" + # weird doctests fail on imports, but providing the dependency + # fails another test + "lightning_utilities.core.imports.ModuleAvailableCache" + "lightning_utilities.core.imports.requires" ]; disabledTestPaths = [