23 buildPythonPackage rec {
27 disabled = pythonOlder "3.6";
29 src = fetchFromGitHub {
32 rev = "refs/tags/${version}";
33 hash = "sha256-WlbZP2+qUSyfmeFFiuarXI3VaNZvD9cnOef/WM+J0OE=";
40 propagatedBuildInputs = [
44 setuptools # for pkg_resources
49 passthru.optional-dependencies = {
50 tui = [ asciimatics pyperclip ];
65 ] ++ passthru.optional-dependencies.tui;
68 # require a running display server
69 "test_add_downloads_torrents_and_metalinks"
70 "test_add_downloads_uris"
71 # require a running aria2 server
72 "test_cli_autoclear_commands"
73 "test_get_files_method"
74 "test_pause_subcommand"
78 pythonImportsCheck = [ "aria2p" ];
81 homepage = "https://github.com/pawamoy/aria2p";
82 changelog = "https://github.com/pawamoy/aria2p/blob/${src.rev}/CHANGELOG.md";
83 description = "Command-line tool and library to interact with an aria2c daemon process with JSON-RPC";
84 mainProgram = "aria2p";
85 license = licenses.isc;
86 maintainers = with maintainers; [ koral ];