stig: fix evaluation dropping check dependency python3Packages.asynctest (#383465)
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python310Packages,
|
||||
python3Packages,
|
||||
testers,
|
||||
stig,
|
||||
}:
|
||||
|
||||
python310Packages.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "stig";
|
||||
# This project has a different concept for pre release / alpha,
|
||||
# Read the project's README for details: https://github.com/rndusr/stig#stig
|
||||
version = "0.12.10a0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rndusr";
|
||||
@@ -19,7 +20,11 @@ python310Packages.buildPythonApplication rec {
|
||||
sha256 = "sha256-lSFI4/DxWl17KFgLXZ7c5nW/e5IUGN7s8Gm6wTM5ZWg=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python310Packages; [
|
||||
build-system = with python3Packages; [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
urwid
|
||||
urwidtrees
|
||||
aiohttp
|
||||
@@ -30,27 +35,11 @@ python310Packages.buildPythonApplication rec {
|
||||
setproctitle
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python310Packages; [
|
||||
asynctest
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
|
||||
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;
|
||||
@@ -58,9 +47,6 @@ python310Packages.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";
|
||||
|
||||
Reference in New Issue
Block a user