From 6f12747ade6404bcf18c2c4800ccc57f9e83efd7 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Thu, 26 Jun 2025 01:14:46 +0800 Subject: [PATCH 1/3] python313Packages.aria2p: build with tui by default --- pkgs/development/python-modules/aria2p/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/aria2p/default.nix b/pkgs/development/python-modules/aria2p/default.nix index eae13c92e2a4..a09da7152d4b 100644 --- a/pkgs/development/python-modules/aria2p/default.nix +++ b/pkgs/development/python-modules/aria2p/default.nix @@ -19,6 +19,8 @@ pytestCheckHook, responses, uvicorn, + + withTui ? true, }: buildPythonPackage rec { @@ -43,7 +45,7 @@ buildPythonPackage rec { setuptools # for pkg_resources toml websocket-client - ]; + ] ++ lib.optionals withTui optional-dependencies.tui; optional-dependencies = { tui = [ From 44e363ac53e79f0ab78b82cb54c81e8848f5f44d Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Thu, 26 Jun 2025 01:27:08 +0800 Subject: [PATCH 2/3] python313Packages.aria2p: mark broken on darwin --- pkgs/development/python-modules/aria2p/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/aria2p/default.nix b/pkgs/development/python-modules/aria2p/default.nix index a09da7152d4b..373f3f1d1fb6 100644 --- a/pkgs/development/python-modules/aria2p/default.nix +++ b/pkgs/development/python-modules/aria2p/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder, @@ -88,5 +89,8 @@ buildPythonPackage rec { mainProgram = "aria2p"; license = licenses.isc; maintainers = with maintainers; [ koral ]; + badPlatforms = [ + lib.systems.inspect.patterns.isDarwin + ]; }; } From bf049492518aa9d0772097d20e6e9b9d964afeaa Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Thu, 26 Jun 2025 01:45:38 +0800 Subject: [PATCH 3/3] python313Packages.aria2p: modernize --- pkgs/development/python-modules/aria2p/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aria2p/default.nix b/pkgs/development/python-modules/aria2p/default.nix index 373f3f1d1fb6..fe5977108255 100644 --- a/pkgs/development/python-modules/aria2p/default.nix +++ b/pkgs/development/python-modules/aria2p/default.nix @@ -27,7 +27,8 @@ buildPythonPackage rec { pname = "aria2p"; version = "0.12.1"; - format = "pyproject"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { @@ -82,13 +83,13 @@ 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 ];