nixpkgs-suyu/pkgs/applications/misc/gallery-dl/default.nix
2021-05-13 20:01:28 +00:00

28 lines
807 B
Nix

{ lib, buildPythonApplication, fetchPypi, requests, pytestCheckHook }:
buildPythonApplication rec {
pname = "gallery_dl";
version = "1.17.4";
src = fetchPypi {
inherit pname version;
sha256 = "4df80fd923b03b2413a3d1c50e32c3006d100ed5acc1400ace69d8dc2162d293";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ pytestCheckHook ];
pytestFlagsArray = [
# requires network access
"--ignore=test/test_results.py"
"--ignore=test/test_downloader.py"
];
meta = with lib; {
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
homepage = "https://github.com/mikf/gallery-dl";
license = licenses.gpl2;
maintainers = with maintainers; [ dawidsowa ];
platforms = platforms.unix;
};
}