blob: fba634b54c334a21b5344473cbd52b59b3f01412 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
lib,
python3Packages,
fetchFromGitHub,
ffmpeg,
wget,
versionCheckHook,
}:
let
version = "20260716";
src = fetchFromGitHub {
owner = "aajanki";
repo = "yle-dl";
tag = "releases/${version}";
hash = "sha256-UU1IWvg6uwsjnnBcv1WgQMxcraBZQwDYVAQ+58DrzFo=";
};
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
];
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 = [ ];
platforms = lib.platforms.unix;
mainProgram = "yle-dl";
};
}
|