Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
ffmpeg,
|
|
wget,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
let
|
|
version = "20250730";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "aajanki";
|
|
repo = "yle-dl";
|
|
tag = "releases/${version}";
|
|
hash = "sha256-85Dj+r6heusvT3+y3SNYBBa5h/tje0G4XHmfJpCwkMY=";
|
|
};
|
|
in
|
|
python3Packages.buildPythonApplication {
|
|
pname = "yle-dl";
|
|
inherit version src;
|
|
pyproject = true;
|
|
|
|
build-system = with python3Packages; [ flit-core ];
|
|
|
|
dependencies = with python3Packages; [
|
|
configargparse
|
|
lxml
|
|
requests
|
|
];
|
|
|
|
pythonPath = [
|
|
wget
|
|
ffmpeg
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
versionCheckHook
|
|
# tests require network access
|
|
# python3Packages.pytestCheckHook
|
|
];
|
|
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
description = "Downloads videos from Yle (Finnish Broadcasting Company) servers";
|
|
homepage = "https://aajanki.github.io/yle-dl/";
|
|
changelog = "https://github.com/aajanki/yle-dl/blob/${src.tag}/ChangeLog";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ dezgeg ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "yle-dl";
|
|
};
|
|
}
|