ytdl-sub: init at 2024.10.26

This commit is contained in:
LoC 2024-10-26 21:20:44 +02:00
parent 4e52baa7e2
commit 438a62e1be
No known key found for this signature in database
GPG Key ID: 5563EB4A86344F15

View File

@ -0,0 +1,49 @@
{
python3Packages,
fetchPypi,
ffmpeg,
lib,
}:
python3Packages.buildPythonApplication rec {
pname = "ytdl-sub";
version = "2024.10.26";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "ytdl_sub";
hash = "sha256-qfEPHhCB/Avl+nUIk2+ZVseg8ATP/LQmLvX/H9rhp7M=";
};
build-system = with python3Packages; [
setuptools
wheel
];
dependencies = with python3Packages; [
yt-dlp
colorama
mergedeep
mediafile
pyyaml
];
makeWrapperArgs = [
"--set YTDL_SUB_FFMPEG_PATH ${lib.getExe' ffmpeg "ffmpeg"}"
"--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}"
];
meta = {
homepage = "https://github.com/jmbannon/ytdl-sub";
description = "Lightweight tool to automate downloading and metadata generation with yt-dlp";
longDescription = ''
ytdl-sub is a command-line tool that downloads media via yt-dlp and prepares it for your favorite media player, including Kodi, Jellyfin, Plex, Emby, and modern music players. No additional plugins or external scrapers are needed.
'';
changelog = "https://github.com/jmbannon/ytdl-sub/releases/tag/${version}";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
loc
];
mainProgram = "ytdl-sub";
};
}