2020-11-29 14:50:32 +00:00
|
|
|
{ lib, buildPythonApplication, fetchPypi, requests, pytestCheckHook }:
|
2019-05-01 11:21:53 +01:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
buildPythonApplication rec {
|
2019-05-01 11:21:53 +01:00
|
|
|
pname = "gallery_dl";
|
2021-05-31 16:19:23 +01:00
|
|
|
version = "1.17.5";
|
2019-05-01 11:21:53 +01:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
src = fetchPypi {
|
2019-05-01 11:21:53 +01:00
|
|
|
inherit pname version;
|
2021-05-31 16:19:23 +01:00
|
|
|
sha256 = "9d64bca2bf0cdecaff1336e0656917eb9028586fee4ac342761d6cb9a0cdb4f9";
|
2019-05-01 11:21:53 +01:00
|
|
|
};
|
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
propagatedBuildInputs = [ requests ];
|
2019-05-01 11:21:53 +01:00
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2020-10-11 23:03:39 +01:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# requires network access
|
|
|
|
"--ignore=test/test_results.py"
|
2020-10-29 03:49:39 +00:00
|
|
|
"--ignore=test/test_downloader.py"
|
2020-10-11 23:03:39 +01:00
|
|
|
];
|
|
|
|
|
2020-11-29 14:50:32 +00:00
|
|
|
meta = with lib; {
|
2019-05-01 11:21:53 +01: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";
|
2020-11-29 14:50:32 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ dawidsowa ];
|
|
|
|
platforms = platforms.unix;
|
2019-05-01 11:21:53 +01:00
|
|
|
};
|
|
|
|
}
|