Merge: zmap: 4.2.0 -> 4.3.1 (#364578)
[NixPkgs.git] / pkgs / applications / misc / gallery-dl / default.nix
blob18891bb8b3397771ddd685906751be32e3b4e9cb
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.28.1";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit version;
18     pname = "gallery_dl";
19     hash = "sha256-1UxLZZoDJsaiPqb+zaiWb9TyQIknKlrz6RN21B0sNe4=";
20   };
22   propagatedBuildInputs = [
23     requests
24     yt-dlp
25   ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   disabledTests = [
30     # requires network access
31     "test_init"
32   ];
34   pytestFlagsArray = [
35     # requires network access
36     "--ignore=test/test_results.py"
37     "--ignore=test/test_downloader.py"
39     # incompatible with pytestCheckHook
40     "--ignore=test/test_ytdl.py"
41   ];
43   pythonImportsCheck = [ "gallery_dl" ];
45   passthru.updateScript = nix-update-script { };
47   meta = {
48     description = "Command-line program to download image-galleries and -collections from several image hosting sites";
49     homepage = "https://github.com/mikf/gallery-dl";
50     changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
51     license = lib.licenses.gpl2Only;
52     mainProgram = "gallery-dl";
53     maintainers = with lib.maintainers; [ dawidsowa ];
54   };