about summary refs log tree commit diff
path: root/pkgs/by-name/yt
diff options
context:
space:
mode:
authorQuantenzitrone <nix@dev.quantenzitrone.eu>2024-03-17 01:12:33 +0100
committerQuantenzitrone <nix@dev.quantenzitrone.eu>2024-03-17 08:11:10 +0100
commit17b4bbf63d46dcb8aef01ee8c7f386ed7c3d595f (patch)
tree9782cb2bc87474e02330b84ee92a3d6baef7c680 /pkgs/by-name/yt
parentd691274a972b3165335d261cc4671335f5c67de9 (diff)
yt-dlg: init at 1.8.5
Diffstat (limited to 'pkgs/by-name/yt')
-rw-r--r--pkgs/by-name/yt/yt-dlg/package.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/by-name/yt/yt-dlg/package.nix b/pkgs/by-name/yt/yt-dlg/package.nix
new file mode 100644
index 0000000000000..c24df3604ddc2
--- /dev/null
+++ b/pkgs/by-name/yt/yt-dlg/package.nix
@@ -0,0 +1,50 @@
+{
+  lib,
+  python3,
+  fetchFromGitHub,
+  fetchPypi
+}:
+let
+  python3Packages =
+    (python3.override {
+      packageOverrides = final: prev: {
+        wxpython = prev.wxpython.overrideAttrs rec {
+          version = "4.2.0";
+          src = fetchPypi {
+            pname = "wxPython";
+            inherit version;
+            hash = "sha256-ZjzrxFCdfl0RNRiGX+J093+VQ0xdV7w4btWNZc7thsc=";
+          };
+        };
+      };
+    }).pkgs;
+in
+python3Packages.buildPythonApplication rec {
+  pname = "yt-dlg";
+  version = "1.8.5";
+
+  src = fetchFromGitHub {
+    owner = "oleksis";
+    repo = "youtube-dl-gui";
+    rev = "v${version}";
+    hash = "sha256-W1ZlArmM+Ro5MF/rB88me/PD79dJA4v188mPbMd8Kow=";
+  };
+
+  pyproject = true;
+  build-system = with python3Packages; [
+    setuptools
+    wheel
+  ];
+  dependencies = with python3Packages; [
+    pypubsub
+    wxpython
+  ];
+
+  meta = {
+    description = "A cross platform front-end GUI of the popular youtube-dl written in wxPython.";
+    homepage = "https://oleksis.github.io/youtube-dl-gui";
+    license = lib.licenses.unlicense;
+    mainProgram = "yt-dlg";
+    maintainers = with lib.maintainers; [ quantenzitrone ];
+  };
+}