Unverified Commit 80d50fc8 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

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

parents 1aa8138f bf049492
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
{
  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
    ];
  };
}