python313Packages.aria2p: enable tui by default; mark broken on darwin (#419979)

This commit is contained in:
Peder Bergebakken Sundt
2025-06-27 05:16:46 +02:00
committed by GitHub
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
@@ -19,12 +20,15 @@
pytestCheckHook,
responses,
uvicorn,
withTui ? true,
}:
buildPythonPackage rec {
pname = "aria2p";
version = "0.12.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
@@ -43,7 +47,7 @@ buildPythonPackage rec {
setuptools # for pkg_resources
toml
websocket-client
];
] ++ lib.optionals withTui optional-dependencies.tui;
optional-dependencies = {
tui = [
@@ -79,12 +83,15 @@ buildPythonPackage rec {
pythonImportsCheck = [ "aria2p" ];
meta = with lib; {
meta = {
homepage = "https://github.com/pawamoy/aria2p";
changelog = "https://github.com/pawamoy/aria2p/blob/${src.tag}/CHANGELOG.md";
description = "Command-line tool and library to interact with an aria2c daemon process with JSON-RPC";
mainProgram = "aria2p";
license = licenses.isc;
maintainers = with maintainers; [ koral ];
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ koral ];
badPlatforms = [
lib.systems.inspect.patterns.isDarwin
];
};
}