2020-11-30 08:33:03 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, requests, 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";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "1.17.1";
|
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;
|
2021-03-23 19:22:30 +00:00
|
|
|
sha256 = "1cfaa3a617d5d222d4b9b41634b1bdede2673a8620d6b0e62fb755ae224ca2ac";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
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"
|
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";
|
2020-11-30 08:33:03 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ dawidsowa ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|