python312Packages.sphinx-rtd-dark-mode: drop nose dependency

This commit is contained in:
Sigmanificient 2024-07-27 13:06:55 +02:00
parent e36e9f5733
commit 555624667d

View File

@ -2,8 +2,7 @@
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
lib, lib,
pythonOlder, pytestCheckHook,
nose,
setuptools, setuptools,
sphinx, sphinx,
sphinx-rtd-theme, sphinx-rtd-theme,
@ -25,21 +24,12 @@ buildPythonPackage rec {
dependencies = [ sphinx-rtd-theme ]; dependencies = [ sphinx-rtd-theme ];
# tests rely on nose
doCheck = pythonOlder "3.12";
nativeCheckInputs = [ nativeCheckInputs = [
nose pytestCheckHook
sphinx sphinx
]; ];
checkPhase = '' pytestFlagsArray = [ "tests/build.py" ];
runHook preCheck
nosetests tests
runHook postCheck
'';
pythonImportsCheck = [ "sphinx_rtd_dark_mode" ]; pythonImportsCheck = [ "sphinx_rtd_dark_mode" ];