Skip to content

Commit d12a583

Browse files
authored
stig: fix evaluation dropping check dependency python3Packages.asynctest (#383465)
2 parents 98b3af3 + 14fc7a9 commit d12a583

File tree

1 file changed

+13
-27
lines changed

1 file changed

+13
-27
lines changed

pkgs/by-name/st/stig/package.nix

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
lib,
33
fetchFromGitHub,
4-
python310Packages,
4+
python3Packages,
55
testers,
66
stig,
77
}:
88

9-
python310Packages.buildPythonApplication rec {
9+
python3Packages.buildPythonApplication rec {
1010
pname = "stig";
1111
# This project has a different concept for pre release / alpha,
1212
# Read the project's README for details: https://github.com/rndusr/stig#stig
1313
version = "0.12.10a0";
14+
pyproject = true;
1415

1516
src = fetchFromGitHub {
1617
owner = "rndusr";
@@ -19,7 +20,11 @@ python310Packages.buildPythonApplication rec {
1920
sha256 = "sha256-lSFI4/DxWl17KFgLXZ7c5nW/e5IUGN7s8Gm6wTM5ZWg=";
2021
};
2122

22-
propagatedBuildInputs = with python310Packages; [
23+
build-system = with python3Packages; [
24+
setuptools
25+
];
26+
27+
dependencies = with python3Packages; [
2328
urwid
2429
urwidtrees
2530
aiohttp
@@ -30,37 +35,18 @@ python310Packages.buildPythonApplication rec {
3035
setproctitle
3136
];
3237

33-
nativeCheckInputs = with python310Packages; [
34-
asynctest
35-
pytestCheckHook
36-
];
37-
38-
dontUseSetuptoolsCheck = true;
39-
40-
preCheck = ''
41-
export LC_ALL=C
42-
'';
43-
44-
disabledTestPaths = [
45-
# Almost all tests fail in this file, it is reported upstream in:
46-
# https://github.com/rndusr/stig/issues/214 , and upstream fails to
47-
# reproduce the issue unfortunately.
48-
"tests/client_test/aiotransmission_test/api_settings_test.py"
49-
];
50-
disabledTests = [
51-
# Another failure with similar circumstances to the above
52-
"test_candidates_are_sorted_case_insensitively"
53-
];
38+
# According to the upstream author,
39+
# stig no longer has working tests
40+
# since asynctest (former test dependency) got abandoned.
41+
# See https://github.com/rndusr/stig/issues/206#issuecomment-2669636320
42+
doCheck = false;
5443

5544
passthru.tests = testers.testVersion {
5645
package = stig;
5746
command = "stig -v";
5847
version = "stig version ${version}";
5948
};
6049

61-
# https://github.com/rndusr/stig/issues/214#issuecomment-1995651219
62-
dontUsePytestCheck = true;
63-
6450
meta = with lib; {
6551
description = "TUI and CLI for the BitTorrent client Transmission";
6652
homepage = "https://github.com/rndusr/stig";

0 commit comments

Comments
 (0)