Merge pull request #276014 from doronbehar/pkg/stig

stig: fix build, close #275914

authored by Doron Behar and committed by GitHub 19b76cbd 574ac1e6

+15 -16
+15 -16
pkgs/applications/networking/p2p/stig/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 - , python3Packages 4 + , python310Packages 5 5 , testers 6 6 , stig 7 7 }: 8 8 9 - python3Packages.buildPythonApplication rec { 9 + python310Packages.buildPythonApplication rec { 10 10 pname = "stig"; 11 11 # This project has a different concept for pre release / alpha, 12 12 # Read the project's README for details: https://github.com/rndusr/stig#stig 13 - version = "0.12.5a0"; 13 + version = "0.12.8a0"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "rndusr"; 17 17 repo = "stig"; 18 18 rev = "v${version}"; 19 - sha256 = "sha256-e27DBzing38llFxPIsMGkZJXp2q7jjFlQdtfsqLXNHw="; 19 + sha256 = "sha256-vfmuA6DqWvAygcS6N+qX1h+Ag+P4eOwm41DhAFZR3r8="; 20 20 }; 21 21 22 - propagatedBuildInputs = with python3Packages; [ 22 + propagatedBuildInputs = with python310Packages; [ 23 23 urwid 24 24 urwidtrees 25 25 aiohttp ··· 30 30 setproctitle 31 31 ]; 32 32 33 - nativeCheckInputs = with python3Packages; [ 33 + nativeCheckInputs = with python310Packages; [ 34 34 asynctest 35 35 pytestCheckHook 36 36 ]; ··· 41 41 export LC_ALL=C 42 42 ''; 43 43 44 - pytestFlagsArray = [ 45 - "tests" 46 - # TestScrollBarWithScrollable.test_wrapping_bug fails 47 - "--deselect=tests/tui_test/scroll_test.py::TestScrollBarWithScrollable::test_wrapping_bug" 48 - # https://github.com/rndusr/stig/issues/214 49 - "--deselect=tests/completion_test/classes_test.py::TestCandidates::test_candidates_are_sorted_case_insensitively" 50 - ] ++ lib.optionals stdenv.isDarwin [ 51 - "--deselect=tests/client_test/ttypes_test.py::TestTimestamp::test_string__month_day_hour_minute_second" 52 - "--deselect=tests/client_test/aiotransmission_test/api_torrent_test.py" 53 - "--deselect=tests/client_test/aiotransmission_test/rpc_test.py" 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" 54 53 ]; 55 54 56 55 passthru.tests = testers.testVersion {