Files
nixpkgs/pkgs/by-name/yt/ytmdl/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

68 lines
1.4 KiB
Nix

{
lib,
python3Packages,
fetchPypi,
ffmpeg,
writableTmpDirAsHomeHook,
}:
python3Packages.buildPythonApplication rec {
pname = "ytmdl";
version = "2023.11.26";
pyproject = true;
src = fetchPypi {
inherit pname;
version = builtins.replaceStrings [ ".0" ] [ "." ] version;
hash = "sha256-Im3rQAs/TYookv6FeGpU6tJxUGBMb6/UW1ZMDg9FW4s=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "/etc/bash_completion.d" "share/bash-completion/completions" \
--replace-fail "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
'';
build-system = with python3Packages; [ setuptools ];
dependencies = with python3Packages; [
ffmpeg-python
musicbrainzngs
rich
simber
pydes
youtube-search-python
unidecode
pyxdg
downloader-cli
beautifulsoup4
itunespy
mutagen
pysocks
yt-dlp
ytmusicapi
spotipy
];
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ ffmpeg ])
];
nativeCheckInputs = [
writableTmpDirAsHomeHook # the app tries to log stuff into xdg_cache_home
];
pythonImportsCheck = [ "ytmdl" ];
meta = with lib; {
homepage = "https://github.com/deepjyoti30/ytmdl";
description = "YouTube Music Downloader";
license = licenses.mit;
maintainers = with maintainers; [ j0hax ];
mainProgram = "ytmdl";
};
}