ytdl-sub: 2024.12.27 -> 2025.01.15 (#374171)

This commit is contained in:
Arne Keller
2025-01-18 15:02:18 +01:00
committed by GitHub
+20 -9
View File
@@ -1,23 +1,28 @@
{
python3Packages,
fetchPypi,
fetchFromGitHub,
ffmpeg,
lib,
versionCheckHook,
nix-update-script,
}:
python3Packages.buildPythonApplication rec {
pname = "ytdl-sub";
version = "2024.12.27";
version = "2025.01.15";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "ytdl_sub";
hash = "sha256-7XZlKGzDLG/MVw198Ii+l29F+Lt53MY5QtHU8k9xJWA=";
src = fetchFromGitHub {
owner = "jmbannon";
repo = "ytdl-sub";
tag = version;
hash = "sha256-UjCs71nXi77yvB9BhYxT+2G9I+qHEB5Jnhe+GJuppdY=";
};
pythonRelaxDeps = [
"yt-dlp"
];
postPatch = ''
echo '__pypi_version__ = "${version}"; __local_version__ = "${version}"' > src/ytdl_sub/__init__.py
'';
pythonRelaxDeps = [ "yt-dlp" ];
build-system = with python3Packages; [
setuptools
@@ -37,6 +42,11 @@ python3Packages.buildPythonApplication rec {
"--set YTDL_SUB_FFPROBE_PATH ${lib.getExe' ffmpeg "ffprobe"}"
];
nativeCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/jmbannon/ytdl-sub";
description = "Lightweight tool to automate downloading and metadata generation with yt-dlp";
@@ -47,6 +57,7 @@ python3Packages.buildPythonApplication rec {
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
loc
defelo
];
mainProgram = "ytdl-sub";
};