nixpkgs/pkgs/applications/misc/gallery-dl/default.nix

29 lines
869 B
Nix
Raw Normal View History

2020-11-29 14:50:32 +00:00
{ lib, buildPythonApplication, fetchPypi, requests, pytestCheckHook }:
2019-05-01 10:21:53 +00:00
2020-11-29 14:50:32 +00:00
buildPythonApplication rec {
2019-05-01 10:21:53 +00:00
pname = "gallery_dl";
2021-10-02 00:10:00 +00:00
version = "1.19.0";
2019-05-01 10:21:53 +00:00
2020-11-29 14:50:32 +00:00
src = fetchPypi {
2019-05-01 10:21:53 +00:00
inherit pname version;
2021-10-02 00:10:00 +00:00
sha256 = "ceffaa5022d76132165ca9004c1e57d7400b56c9ab3866e3bd139e2ffe38cb72";
2019-05-01 10:21:53 +00:00
};
2020-11-29 14:50:32 +00:00
propagatedBuildInputs = [ requests ];
2019-05-01 10:21:53 +00:00
2020-11-29 14:50:32 +00:00
checkInputs = [ pytestCheckHook ];
2020-10-11 22:03:39 +00:00
pytestFlagsArray = [
# requires network access
"--ignore=test/test_results.py"
"--ignore=test/test_downloader.py"
2020-10-11 22:03:39 +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";
2021-09-08 04:20:00 +00:00
changelog = "https://github.com/mikf/gallery-dl/raw/v${version}/CHANGELOG.md";
license = licenses.gpl2Only;
maintainers = with maintainers; [ dawidsowa marsam ];
2019-05-01 10:21:53 +00:00
};
}