From 555624667d32ddf6146d8200c92449bd47bca8f6 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Sat, 27 Jul 2024 13:06:55 +0200 Subject: [PATCH] python312Packages.sphinx-rtd-dark-mode: drop nose dependency --- .../sphinx-rtd-dark-mode/default.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix index d3b4bf7f41045cb..863f93848846dd6 100644 --- a/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix +++ b/pkgs/development/python-modules/sphinx-rtd-dark-mode/default.nix @@ -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" ];