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

29 lines
871 B
Nix
Raw Normal View History

{ lib, buildPythonApplication, fetchPypi, requests, yt-dlp, 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";
2022-02-07 17:52:28 +01:00
version = "1.20.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;
2022-02-07 17:52:28 +01:00
sha256 = "sha256-K22ee6qcVXbJJKH5/6EMvSdSNKBb7xAP++1s+A5ENu4=";
2019-05-01 12:21:53 +02:00
};
propagatedBuildInputs = [ requests yt-dlp ];
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"
"--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";
2021-09-08 06:20:00 +02:00
changelog = "https://github.com/mikf/gallery-dl/raw/v${version}/CHANGELOG.md";
license = licenses.gpl2Only;
maintainers = with maintainers; [ dawidsowa marsam ];
2019-05-01 12:21:53 +02:00
};
}