1 { lib, buildPythonPackage, fetchFromGitHub, pythonOlder
2 , aria2, poetry, pytest, pytestcov, pytest_xdist, responses
3 , asciimatics, loguru, requests, setuptools, websocket_client
6 buildPythonPackage rec {
10 disabled = pythonOlder "3.6";
12 src = fetchFromGitHub {
16 sha256 = "1s4kad6jnfz9p64gkqclkfq2x2bn8dbc0hyr86d1545bgn7pz672";
19 nativeBuildInputs = [ poetry ];
25 checkInputs = [ aria2 responses pytest pytestcov pytest_xdist ];
27 # Tests are not all stable/deterministic,
28 # they rely on actually running an aria2c daemon and communicating with it,
29 # race conditions and deadlocks were observed,
30 # thus the corresponding tests are disabled
32 pytest -nauto -k "not test_api and not test_cli and not test_interface"
35 propagatedBuildInputs = [ asciimatics loguru requests setuptools websocket_client ];
38 homepage = "https://github.com/pawamoy/aria2p";
39 description = "Command-line tool and library to interact with an aria2c daemon process with JSON-RPC";
40 license = licenses.isc;
41 maintainers = with maintainers; [ koral ];