2021-12-06 16:07:01 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, requests, yt-dlp, pytestCheckHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildPythonApplication rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gallery_dl";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "1.23.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-/jkzwFBBwkfymxmD6bXj0ZAlN4RV+UERg2kRtDyIV94=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
propagatedBuildInputs = [ requests yt-dlp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
checkInputs = [ 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
|
|
|
];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
meta = with lib; {
|
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";
|
2021-09-18 10:52:07 +00:00
|
|
|
changelog = "https://github.com/mikf/gallery-dl/raw/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ dawidsowa marsam ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|