2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonApplication,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
yt-dlp,
|
|
|
|
pytestCheckHook,
|
2024-09-19 14:19:46 +00:00
|
|
|
nix-update-script,
|
2024-06-05 15:53:02 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildPythonApplication rec {
|
2022-10-30 15:09:59 +00:00
|
|
|
pname = "gallery-dl";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.27.4";
|
2022-10-30 15:09:59 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchPypi {
|
2022-10-30 15:09:59 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "gallery_dl";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-28y5sU9onPHIqlTIYzIQ+J2KElJocbuwKQN/E50JGI8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
yt-dlp
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# requires network access
|
|
|
|
"--ignore=test/test_results.py"
|
2020-11-03 02:18:15 +00:00
|
|
|
"--ignore=test/test_downloader.py"
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# incompatible with pytestCheckHook
|
|
|
|
"--ignore=test/test_ytdl.py"
|
2020-10-16 20:44:37 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "gallery_dl" ];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
meta = {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
|
|
|
|
homepage = "https://github.com/mikf/gallery-dl";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
|
2024-06-05 15:53:02 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "gallery-dl";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [ dawidsowa ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|