about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/itchiodl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/games/itchiodl/default.nix')
-rw-r--r--nixpkgs/pkgs/games/itchiodl/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/games/itchiodl/default.nix b/nixpkgs/pkgs/games/itchiodl/default.nix
new file mode 100644
index 000000000000..57a5d1473e17
--- /dev/null
+++ b/nixpkgs/pkgs/games/itchiodl/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, python3Packages
+, fetchFromGitHub
+}:
+
+python3Packages.buildPythonApplication rec {
+  pname = "itchiodl";
+  version = "2.3.0";
+
+  src = fetchFromGitHub {
+    owner = "Emersont1";
+    repo = "itchio";
+    rev = "v${version}";
+    hash = "sha256-XuNkqTAT9LlSwruchGQbombAKHZvKhpnqLfvJdDcrj0=";
+  };
+
+  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 ];
+  };
+}