Skip to content

Commit

Permalink
ytdl-sub: 2024.12.27 -> 2025.01.15 (NixOS#374171)
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst authored and dustypomerleau committed Jan 20, 2025
2 parents 617e398 + 458c4df commit d68db93
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions pkgs/by-name/yt/ytdl-sub/package.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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";
Expand All @@ -47,6 +57,7 @@ python3Packages.buildPythonApplication rec {
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
loc
defelo
];
mainProgram = "ytdl-sub";
};
Expand Down

0 comments on commit d68db93

Please sign in to comment.