From a0a2932ac2fc0bfd338da1ccc5b077139a0ade99 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Thu, 20 Feb 2025 03:15:20 +0800 Subject: [PATCH] stig: disable checks and get rid of checkInputs to resolve dependency conflicts. The chekck dependency asynctest is unmaintained by the upstream and only supports Python<=3.9. With such dependency, it is impossible to find a Python interpreter version for stig to evaluate. --- pkgs/by-name/st/stig/package.nix | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/pkgs/by-name/st/stig/package.nix b/pkgs/by-name/st/stig/package.nix index 307995c9bfc9..a9bf6a747d48 100644 --- a/pkgs/by-name/st/stig/package.nix +++ b/pkgs/by-name/st/stig/package.nix @@ -30,25 +30,11 @@ python3Packages.buildPythonApplication rec { setproctitle ]; - nativeCheckInputs = with python3Packages; [ - asynctest - pytestCheckHook - ]; - - preCheck = '' - export LC_ALL=C - ''; - - disabledTestPaths = [ - # Almost all tests fail in this file, it is reported upstream in: - # https://github.com/rndusr/stig/issues/214 , and upstream fails to - # reproduce the issue unfortunately. - "tests/client_test/aiotransmission_test/api_settings_test.py" - ]; - disabledTests = [ - # Another failure with similar circumstances to the above - "test_candidates_are_sorted_case_insensitively" - ]; + # According to the upstream author, + # stig no longer has working tests + # since asynctest (former test dependency) got abandoned. + # See https://github.com/rndusr/stig/issues/206#issuecomment-2669636320 + doCheck = false; passthru.tests = testers.testVersion { package = stig; @@ -56,9 +42,6 @@ python3Packages.buildPythonApplication rec { version = "stig version ${version}"; }; - # https://github.com/rndusr/stig/issues/214#issuecomment-1995651219 - dontUsePytestCheck = true; - meta = with lib; { description = "TUI and CLI for the BitTorrent client Transmission"; homepage = "https://github.com/rndusr/stig";