From 2d29fbd4b6ec03b53d63dc126ce27f7e45e083bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 6 Mar 2023 14:31:18 +0100 Subject: [PATCH] sphinx-rtd-theme: fix missing docutils for cross compilation The tests are disabled when cross compiling. The effect of adding pythonRelaxDepsHook to check inputs is that it is skipped when cross compiling or when checks are disabled. --- pkgs/development/python-modules/sphinx-rtd-theme/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/sphinx-rtd-theme/default.nix b/pkgs/development/python-modules/sphinx-rtd-theme/default.nix index 3ec142f14035..613f19981216 100644 --- a/pkgs/development/python-modules/sphinx-rtd-theme/default.nix +++ b/pkgs/development/python-modules/sphinx-rtd-theme/default.nix @@ -31,9 +31,12 @@ buildPythonPackage rec { sphinxcontrib-jquery ]; + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + nativeCheckInputs = [ pytestCheckHook - pythonRelaxDepsHook readthedocs-sphinx-ext ];