summary refs log tree commit diff
path: root/pkgs/tools/misc/ytmdl
diff options
context:
space:
mode:
authorJohannes Arnold <johannes.arnold@stud.uni-hannover.de>2021-06-15 23:44:28 +0200
committerJohannes Arnold <johannes.arnold@stud.uni-hannover.de>2021-06-20 20:14:38 +0200
commit3e2dedb80525555588757fbfe2303b75cfd01a72 (patch)
tree4f58cc8694eac3bd8172910de13e7a962b8d3001 /pkgs/tools/misc/ytmdl
parent484e29479e90f1f672de1b9a426409829e455df9 (diff)
downloadnixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar.gz
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar.bz2
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar.lz
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar.xz
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.tar.zst
nixpkgs-3e2dedb80525555588757fbfe2303b75cfd01a72.zip
ytmdl: init at 2021.05.26
Diffstat (limited to 'pkgs/tools/misc/ytmdl')
-rw-r--r--pkgs/tools/misc/ytmdl/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/misc/ytmdl/default.nix b/pkgs/tools/misc/ytmdl/default.nix
new file mode 100644
index 00000000000..0827168d60c
--- /dev/null
+++ b/pkgs/tools/misc/ytmdl/default.nix
@@ -0,0 +1,48 @@
+{ lib, fetchFromGitHub, buildPythonApplication, ffmpeg, ffmpeg-python, musicbrainzngs, rich, simber, pydes, youtube-search, unidecode, pyxdg, downloader-cli, beautifulsoup4, itunespy, mutagen, pysocks, youtube-dl }:
+
+buildPythonApplication rec {
+  pname = "ytmdl";
+  version = "2021.05.26";
+
+  src = fetchFromGitHub {
+    owner = "deepjyoti30";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-AYBhPmv1/cOaMh44kqm7JpJSudHbfriiJztcGL5mbEk=";
+  };
+
+  postPatch = ''
+    substituteInPlace setup.py \
+      --replace "bs4" "beautifulsoup4"
+  '';
+
+
+  propagatedBuildInputs = [
+    ffmpeg
+    ffmpeg-python
+    musicbrainzngs
+    rich
+    simber
+    pydes
+    youtube-search
+    unidecode
+    pyxdg
+    downloader-cli
+    beautifulsoup4
+    itunespy
+    mutagen
+    pysocks
+    youtube-dl
+  ];
+
+  # This application has no tests
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://github.com/deepjyoti30/ytmdl";
+    description = "YouTube Music Downloader";
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ j0hax ];
+  };
+}