python3Packages.pytest-relaxed: fix pytest8.4 compat

Changed files
+32
pkgs
development
python-modules
+10
pkgs/development/python-modules/pytest-relaxed/default.nix
··· 21 21 hash = "sha256-lW6gKOww27+2gN2Oe0p/uPgKI5WV6Ius4Bi/LA1xgkg="; 22 22 }; 23 23 24 + patches = [ 25 + # https://github.com/bitprophet/pytest-relaxed/issues/28 26 + # https://github.com/bitprophet/pytest-relaxed/pull/29 27 + ./fix-oldstyle-hookimpl-setup.patch 28 + ]; 29 + 24 30 buildInputs = [ pytest ]; 25 31 26 32 propagatedBuildInputs = [ decorator ]; ··· 31 37 ]; 32 38 33 39 enabledTestPaths = [ "tests" ]; 40 + 41 + disabledTests = [ 42 + "test_skips_pytest_fixtures" 43 + ]; 34 44 35 45 pythonImportsCheck = [ "pytest_relaxed" ]; 36 46
+22
pkgs/development/python-modules/pytest-relaxed/fix-oldstyle-hookimpl-setup.patch
··· 1 + From ec22fc4da8cc081c53da7b3aaaa2d5095b7abdec Mon Sep 17 00:00:00 2001 2 + From: Marcel Telka <marcel@telka.sk> 3 + Date: Mon, 13 Nov 2023 16:18:28 +0100 4 + Subject: [PATCH] Fix deprecation warning 5 + 6 + --- 7 + pytest_relaxed/plugin.py | 2 +- 8 + 1 file changed, 1 insertion(+), 1 deletion(-) 9 + 10 + diff --git a/pytest_relaxed/plugin.py b/pytest_relaxed/plugin.py 11 + index 562a597..28798d3 100644 12 + --- a/pytest_relaxed/plugin.py 13 + +++ b/pytest_relaxed/plugin.py 14 + @@ -37,7 +37,7 @@ def pytest_collect_file(file_path, parent): 15 + return SpecModule.from_parent(parent=parent, path=file_path) 16 + 17 + 18 + -@pytest.mark.trylast # So we can be sure builtin terminalreporter exists 19 + +@pytest.hookimpl(trylast=True) # Be sure builtin terminalreporter exists 20 + def pytest_configure(config): 21 + # TODO: we _may_ sometime want to do the isatty/slaveinput/etc checks that 22 + # pytest-sugar does?