9 python3Packages.buildPythonApplication rec {
11 version = "2025.01.17";
14 src = fetchFromGitHub {
18 hash = "sha256-6RazXOXkBXwhJz8eNhrLIoEAVXnFEAF3O+SDKSjAlYo=";
22 echo '__pypi_version__ = "${version}"; __local_version__ = "${version}"' > src/ytdl_sub/__init__.py
25 pythonRelaxDeps = [ "yt-dlp" ];
27 build-system = with python3Packages; [
32 dependencies = with python3Packages; [
41 "--set YTDL_SUB_FFMPEG_PATH ${lib.getExe' ffmpeg "ffmpeg"}"
42 "--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}"
45 nativeCheckInputs = [ versionCheckHook ];
46 versionCheckProgramArg = "--version";
48 passthru.updateScript = nix-update-script { };
51 homepage = "https://github.com/jmbannon/ytdl-sub";
52 description = "Lightweight tool to automate downloading and metadata generation with yt-dlp";
54 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.
56 changelog = "https://github.com/jmbannon/ytdl-sub/releases/tag/${version}";
57 license = lib.licenses.gpl3Only;
58 maintainers = with lib.maintainers; [
62 mainProgram = "ytdl-sub";