2021-11-27 04:20:00 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, requests, yt-dlp, pytestCheckHook }:
|
2019-05-01 10:21:53 +00:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
buildPythonApplication rec {
|
2022-10-28 04:20:00 +00:00
|
|
|
pname = "gallery-dl";
|
2023-12-23 04:20:00 +00:00
|
|
|
version = "1.26.5";
|
2022-10-28 04:20:00 +00:00
|
|
|
format = "setuptools";
|
2019-05-01 10:21:53 +00:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
src = fetchPypi {
|
2022-10-28 04:20:00 +00:00
|
|
|
inherit version;
|
|
|
|
pname = "gallery_dl";
|
2023-12-23 04:20:00 +00:00
|
|
|
sha256 = "sha256-XlHfCPwTgy66CiIvEu/NU8gNXfLg+8i98anngyeRfGU=";
|
2019-05-01 10:21:53 +00:00
|
|
|
};
|
|
|
|
|
2022-10-28 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
yt-dlp
|
|
|
|
];
|
2019-05-01 10:21:53 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-10-28 04:20:00 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-05-25 04:20:00 +00:00
|
|
|
|
2020-10-11 22:03:39 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# requires network access
|
|
|
|
"--ignore=test/test_results.py"
|
2020-10-29 03:49:39 +00:00
|
|
|
"--ignore=test/test_downloader.py"
|
2022-05-25 04:20:00 +00:00
|
|
|
|
|
|
|
# incompatible with pytestCheckHook
|
|
|
|
"--ignore=test/test_ytdl.py"
|
2020-10-11 22:03:39 +00:00
|
|
|
];
|
|
|
|
|
2022-10-28 04:20:00 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"gallery_dl"
|
|
|
|
];
|
2022-10-15 04:20:00 +00:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 10:21:53 +00:00
|
|
|
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
|
2020-03-04 23:34:31 +00:00
|
|
|
homepage = "https://github.com/mikf/gallery-dl";
|
2023-06-17 04:20:00 +00:00
|
|
|
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
|
2021-09-08 04:20:00 +00:00
|
|
|
license = licenses.gpl2Only;
|
2023-09-11 15:01:31 +00:00
|
|
|
mainProgram = "gallery-dl";
|
2021-09-08 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ dawidsowa marsam ];
|
2019-05-01 10:21:53 +00:00
|
|
|
};
|
|
|
|
}
|