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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.1 KiB
Nix
Raw Normal View History

{
lib,
buildPythonApplication,
fetchPypi,
requests,
yt-dlp,
pytestCheckHook,
nix-update-script,
}:
2019-05-01 10:21:53 +00:00
2020-11-29 14:50:32 +00:00
buildPythonApplication rec {
pname = "gallery-dl";
version = "1.27.4";
format = "setuptools";
2019-05-01 10:21:53 +00:00
2020-11-29 14:50:32 +00:00
src = fetchPypi {
inherit version;
pname = "gallery_dl";
hash = "sha256-28y5sU9onPHIqlTIYzIQ+J2KElJocbuwKQN/E50JGI8=";
2019-05-01 10:21:53 +00:00
};
propagatedBuildInputs = [
requests
yt-dlp
];
2019-05-01 10:21:53 +00:00
nativeCheckInputs = [ pytestCheckHook ];
2020-10-11 22:03:39 +00:00
pytestFlagsArray = [
# requires network access
"--ignore=test/test_results.py"
"--ignore=test/test_downloader.py"
# incompatible with pytestCheckHook
"--ignore=test/test_ytdl.py"
2020-10-11 22:03:39 +00:00
];
pythonImportsCheck = [ "gallery_dl" ];
passthru.updateScript = nix-update-script { };
meta = {
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";
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
license = lib.licenses.gpl2Only;
2023-09-11 15:01:31 +00:00
mainProgram = "gallery-dl";
maintainers = with lib.maintainers; [ dawidsowa ];
2019-05-01 10:21:53 +00:00
};
}