From 99deccdceca76ed562187d1a8139d3d9cbf4c587 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Wed, 25 Jan 2023 16:40:44 +0100 Subject: [PATCH] itchiodl: init at 2.1.2 --- pkgs/games/itchiodl/default.nix | 35 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/games/itchiodl/default.nix diff --git a/pkgs/games/itchiodl/default.nix b/pkgs/games/itchiodl/default.nix new file mode 100644 index 000000000000..ba84b5c3e818 --- /dev/null +++ b/pkgs/games/itchiodl/default.nix @@ -0,0 +1,35 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "itchiodl"; + version = "2.1.2"; + + src = fetchFromGitHub { + owner = "Emersont1"; + repo = "itchio"; + rev = "v${version}"; + hash = "sha256-U9oLrocwVdTqTQ26/MMiYO++yFGdOjnn8g+ea1jCl/A="; + }; + + format = "pyproject"; + + nativeBuildInputs = with python3Packages; [ + poetry-core + ]; + + propagatedBuildInputs = with python3Packages; [ + beautifulsoup4 + clint + requests + ]; + + meta = with lib; { + homepage = "https://github.com/Emersont1/itchio"; + description = "itch.io download tool"; + license = licenses.mit; + maintainers = with maintainers; [ fgaz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 61a8fa4bc024..5dc590e601d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3248,6 +3248,8 @@ with pkgs; itch = callPackage ../games/itch {}; + itchiodl = callPackage ../games/itchiodl { }; + itd = callPackage ../applications/misc/itd { }; lastpass-cli = callPackage ../tools/security/lastpass-cli { };