nixpkgs/pkgs/applications/networking/p2p/stig/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.6 KiB
Nix
Raw Normal View History

{ lib, stdenv
2019-08-25 14:42:41 +00:00
, fetchFromGitHub
2020-04-24 03:55:05 +00:00
, python3Packages
2019-08-25 14:42:41 +00:00
}:
2020-04-24 03:55:05 +00:00
python3Packages.buildPythonApplication rec {
2019-08-25 14:42:41 +00:00
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.2a0";
2019-08-25 14:42:41 +00:00
src = fetchFromGitHub {
owner = "rndusr";
repo = "stig";
rev = "v${version}";
sha256 = "0sk4vgj3cn75nyrng2d6q0pj1h968kcmbpr9sv1lj1g8fc7g0n4f";
2019-08-25 14:42:41 +00:00
};
2020-04-24 03:55:05 +00:00
propagatedBuildInputs = with python3Packages; [
2019-08-25 14:42:41 +00:00
urwid
urwidtrees
aiohttp
async-timeout
pyxdg
blinker
natsort
setproctitle
];
2020-04-24 03:55:05 +00:00
checkInputs = with python3Packages; [
2019-08-25 14:42:41 +00:00
asynctest
2020-04-24 03:55:05 +00:00
pytestCheckHook
2019-08-25 14:42:41 +00:00
];
2020-04-24 03:55:05 +00:00
dontUseSetuptoolsCheck = true;
preCheck = ''
export LC_ALL=C
2019-08-25 14:42:41 +00:00
'';
2020-04-24 03:55:05 +00:00
pytestFlagsArray = [
"tests"
2020-06-05 18:01:27 +00:00
# TestScrollBarWithScrollable.test_wrapping_bug fails
"--deselect=tests/tui_test/scroll_test.py::TestScrollBarWithScrollable::test_wrapping_bug"
2021-11-29 06:00:10 +00:00
# https://github.com/rndusr/stig/issues/214
"--deselect=tests/completion_test/classes_test.py::TestCandidates::test_candidates_are_sorted_case_insensitively"
2021-01-15 13:21:58 +00:00
] ++ lib.optionals stdenv.isDarwin [
"--deselect=tests/client_test/ttypes_test.py::TestTimestamp::test_string__month_day_hour_minute_second"
2020-12-08 01:54:38 +00:00
"--deselect=tests/client_test/aiotransmission_test/api_torrent_test.py"
"--deselect=tests/client_test/aiotransmission_test/rpc_test.py"
2020-04-24 03:55:05 +00:00
];
meta = with lib; {
2019-08-25 14:42:41 +00:00
description = "TUI and CLI for the BitTorrent client Transmission";
homepage = "https://github.com/rndusr/stig";
license = licenses.gpl3Plus;
2019-08-25 14:42:41 +00:00
maintainers = with maintainers; [ doronbehar ];
};
}