biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / misc / gallery-dl / default.nix
blobac8e15d3890806017baf63d7634e6e8ef8ebf07b
2   lib,
3   buildPythonApplication,
4   fetchPypi,
5   requests,
6   yt-dlp,
7   pytestCheckHook,
8   nix-update-script,
9 }:
11 buildPythonApplication rec {
12   pname = "gallery-dl";
13   version = "1.27.6";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit version;
18     pname = "gallery_dl";
19     hash = "sha256-bxh15aZIupTaHnYM65MAYuYtKx0z2OIQl3WKEU1gO4Q=";
20   };
22   propagatedBuildInputs = [
23     requests
24     yt-dlp
25   ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pytestFlagsArray = [
30     # requires network access
31     "--ignore=test/test_results.py"
32     "--ignore=test/test_downloader.py"
34     # incompatible with pytestCheckHook
35     "--ignore=test/test_ytdl.py"
36   ];
38   pythonImportsCheck = [ "gallery_dl" ];
40   passthru.updateScript = nix-update-script { };
42   meta = {
43     description = "Command-line program to download image-galleries and -collections from several image hosting sites";
44     homepage = "https://github.com/mikf/gallery-dl";
45     changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
46     license = lib.licenses.gpl2Only;
47     mainProgram = "gallery-dl";
48     maintainers = with lib.maintainers; [ dawidsowa ];
49   };