blob: cded6b78595c22d52e933f76dfc2c6e06d081ee2 (
about) (
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
54
55
56
57
58
59
60
61
62
|
{
lib,
fetchFromGitHub,
nix-update-script,
yt-dlp,
python3Packages,
}:
let
pname = "gallery-dl";
version = "1.29.3";
in
python3Packages.buildPythonApplication {
inherit pname version;
pyproject = true;
src = fetchFromGitHub {
owner = "mikf";
repo = "gallery-dl";
tag = "v${version}";
hash = "sha256-LzMiJxMl6IWtUloWxBAMLvkhnTQpHkz/gjWl5gW2sZ0=";
};
build-system = [ python3Packages.setuptools ];
dependencies = [
python3Packages.requests
yt-dlp
];
nativeCheckInputs = [ python3Packages.pytestCheckHook ];
disabledTests = [
# requires network access
"test_init"
];
pytestFlagsArray = [
# requires network access
"--ignore=test/test_results.py"
"--ignore=test/test_downloader.py"
# incompatible with pytestCheckHook
"--ignore=test/test_ytdl.py"
];
pythonImportsCheck = [ "gallery_dl" ];
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
homepage = "https://github.com/mikf/gallery-dl";
license = lib.licenses.gpl2Only;
mainProgram = "gallery-dl";
maintainers = with lib.maintainers; [
dawidsowa
lucasew
];
};
}
|