Merge pull request #330383 from Sigmanificient/sphinx-rtd-dark-mode

python312Packages.sphinx-rtd-dark-mode: drop nose dependency
This commit is contained in:
Nick Cao
2024-07-27 09:49:01 -04:00
committed by GitHub
@@ -2,8 +2,7 @@
buildPythonPackage,
fetchFromGitHub,
lib,
pythonOlder,
nose,
pytestCheckHook,
setuptools,
sphinx,
sphinx-rtd-theme,
@@ -25,21 +24,12 @@ buildPythonPackage rec {
dependencies = [ sphinx-rtd-theme ];
# tests rely on nose
doCheck = pythonOlder "3.12";
nativeCheckInputs = [
nose
pytestCheckHook
sphinx
];
checkPhase = ''
runHook preCheck
nosetests tests
runHook postCheck
'';
pytestFlagsArray = [ "tests/build.py" ];
pythonImportsCheck = [ "sphinx_rtd_dark_mode" ];