2020-11-29 15:50:32 +01:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, requests, pytestCheckHook }:
|
2019-05-01 12:21:53 +02:00
|
|
|
|
2020-11-29 15:50:32 +01:00
|
|
|
buildPythonApplication rec {
|
2019-05-01 12:21:53 +02:00
|
|
|
pname = "gallery_dl";
|
2021-05-13 22:01:28 +02:00
|
|
|
version = "1.17.4";
|
2019-05-01 12:21:53 +02:00
|
|
|
|
2020-11-29 15:50:32 +01:00
|
|
|
src = fetchPypi {
|
2019-05-01 12:21:53 +02:00
|
|
|
inherit pname version;
|
2021-05-13 22:01:28 +02:00
|
|
|
sha256 = "4df80fd923b03b2413a3d1c50e32c3006d100ed5acc1400ace69d8dc2162d293";
|
2019-05-01 12:21:53 +02:00
|
|
|
};
|
|
|
|
|
2020-11-29 15:50:32 +01:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2019-05-01 12:21:53 +02:00
|
|
|
|
2020-11-29 15:50:32 +01:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-10-12 00:03:39 +02:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# requires network access
|
|
|
|
"--ignore=test/test_results.py"
|
2020-10-29 04:49:39 +01:00
|
|
|
"--ignore=test/test_downloader.py"
|
2020-10-12 00:03:39 +02:00
|
|
|
];
|
|
|
|
|
2020-11-29 15:50:32 +01:00
|
|
|
meta = with lib; {
|
2019-05-01 12:21:53 +02:00
|
|
|
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
|
2020-03-05 00:34:31 +01:00
|
|
|
homepage = "https://github.com/mikf/gallery-dl";
|
2020-11-29 15:50:32 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ dawidsowa ];
|
|
|
|
platforms = platforms.unix;
|
2019-05-01 12:21:53 +02:00
|
|
|
};
|
|
|
|
}
|