From 646a6293b39cbc147212d732f46fe4580287d83a Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 16 Feb 2025 22:54:05 +0100 Subject: [PATCH] itch-dl: init at 0.5.2 --- pkgs/by-name/it/itch-dl/package.nix | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/it/itch-dl/package.nix diff --git a/pkgs/by-name/it/itch-dl/package.nix b/pkgs/by-name/it/itch-dl/package.nix new file mode 100644 index 000000000000..9eaf7acdeb91 --- /dev/null +++ b/pkgs/by-name/it/itch-dl/package.nix @@ -0,0 +1,49 @@ +{ + fetchFromGitHub, + lib, + python3Packages, +}: + +python3Packages.buildPythonApplication rec { + pname = "itch-dl"; + version = "0.5.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "DragoonAethis"; + repo = "itch-dl"; + tag = version; + hash = "sha256-MkhXM9CQXbVcnztMPnBscryXWSaSQUeoG6KtVuS8YEo="; + }; + + nativeBuildInputs = with python3Packages; [ + pythonRelaxDepsHook + ]; + + build-system = with python3Packages; [ + poetry-core + ]; + + dependencies = with python3Packages; [ + beautifulsoup4 + lxml + pydantic + requests + tqdm + urllib3 + ]; + + pythonRelaxDeps = [ + "pydantic" + "urllib3" + ]; + + meta = { + description = "Itch.io game downloader with website, game jam, collection and library support"; + mainProgram = "itch-dl"; + homepage = "https://github.com/DragoonAethis/itch-dl"; + changelog = "https://github.com/DragoonAethis/itch-dl/releases/tag/${src.tag}"; + license = with lib.licenses; [ mit ]; + maintainers = with lib.maintainers; [ jopejoe1 ]; + }; +}