2021-07-06 00:34:35 +02:00
|
|
|
{ lib
|
2021-08-28 02:04:20 +02:00
|
|
|
, python3Packages
|
2021-07-06 00:34:35 +02:00
|
|
|
, ffmpeg
|
2021-06-27 18:42:55 +02:00
|
|
|
}:
|
2021-06-15 23:44:28 +02:00
|
|
|
|
2021-08-28 02:04:20 +02:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2021-06-15 23:44:28 +02:00
|
|
|
pname = "ytmdl";
|
2021-08-28 02:04:20 +02:00
|
|
|
version = "2021.08.01";
|
2021-06-15 23:44:28 +02:00
|
|
|
|
2021-08-28 02:04:20 +02:00
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname;
|
|
|
|
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
|
|
|
|
sha256 = "f5ef23dcba89aaf2307baf4ffc2326dc5c02324f646e5e5748219ed328202af4";
|
2021-06-15 23:44:28 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-08-28 02:04:20 +02:00
|
|
|
--replace "bs4" "beautifulsoup4" \
|
|
|
|
--replace "/etc/bash_completion.d" "share/bash-completion/completions" \
|
|
|
|
--replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
|
2021-06-15 23:44:28 +02:00
|
|
|
'';
|
|
|
|
|
2021-08-28 02:04:20 +02:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-06-15 23:44:28 +02:00
|
|
|
ffmpeg-python
|
|
|
|
musicbrainzngs
|
|
|
|
rich
|
|
|
|
simber
|
|
|
|
pydes
|
2021-08-28 02:04:20 +02:00
|
|
|
youtube-search-python
|
2021-06-15 23:44:28 +02:00
|
|
|
unidecode
|
|
|
|
pyxdg
|
|
|
|
downloader-cli
|
|
|
|
beautifulsoup4
|
|
|
|
itunespy
|
|
|
|
mutagen
|
|
|
|
pysocks
|
|
|
|
youtube-dl
|
2021-06-27 18:42:55 +02:00
|
|
|
ytmusicapi
|
2021-08-28 02:04:20 +02:00
|
|
|
spotipy
|
2021-06-15 23:44:28 +02:00
|
|
|
];
|
|
|
|
|
2021-07-06 00:34:35 +02:00
|
|
|
makeWrapperArgs = [
|
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ ffmpeg ])
|
|
|
|
];
|
|
|
|
|
2021-06-15 23:44:28 +02:00
|
|
|
# This application has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/deepjyoti30/ytmdl";
|
|
|
|
description = "YouTube Music Downloader";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ j0hax ];
|
|
|
|
};
|
|
|
|
}
|