24 buildPythonPackage rec {
28 disabled = pythonOlder "3.6";
30 src = fetchFromGitHub {
33 rev = "refs/tags/${version}";
34 hash = "sha256-WlbZP2+qUSyfmeFFiuarXI3VaNZvD9cnOef/WM+J0OE=";
37 nativeBuildInputs = [ pdm-backend ];
39 propagatedBuildInputs = [
43 setuptools # for pkg_resources
48 optional-dependencies = {
67 ] ++ optional-dependencies.tui;
70 # require a running display server
71 "test_add_downloads_torrents_and_metalinks"
72 "test_add_downloads_uris"
73 # require a running aria2 server
74 "test_cli_autoclear_commands"
75 "test_get_files_method"
76 "test_pause_subcommand"
80 pythonImportsCheck = [ "aria2p" ];
83 homepage = "https://github.com/pawamoy/aria2p";
84 changelog = "https://github.com/pawamoy/aria2p/blob/${src.rev}/CHANGELOG.md";
85 description = "Command-line tool and library to interact with an aria2c daemon process with JSON-RPC";
86 mainProgram = "aria2p";
87 license = licenses.isc;
88 maintainers = with maintainers; [ koral ];