mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
ytdl-sub: init at 2024.10.26
This commit is contained in:
parent
4e52baa7e2
commit
438a62e1be
49
pkgs/by-name/yt/ytdl-sub/package.nix
Normal file
49
pkgs/by-name/yt/ytdl-sub/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user