Unverified Commit 36908fc5 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

gallery-dl: 1.28.3 -> 1.28.4, refactor (#373237)

parents 467ac0eb 7cb48f82
Loading
Loading
Loading
Loading
+13 −10
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  gitUpdater,
  nix-update-script,
  yt-dlp,
  python3Packages,
}:

python3Packages.buildPythonApplication rec {
let
  pname = "gallery-dl";
  version = "1.28.3";
  version = "1.28.4";
in
python3Packages.buildPythonApplication {
  inherit pname version;
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mikf";
    repo = "gallery-dl";
    rev = "v${version}";
    hash = "sha256-OV+4BJmJNvkNmDsogI9V7SLmnc5HJkZd5xqsFoZCHEk=";
    tag = "v${version}";
    hash = "sha256-bfE3QUu+ytxd4YkWxsnQ3hTEDE1OgJN8zJxSah2u08I=";
  };

  build-system = [ python3Packages.setuptools ];
@@ -43,17 +46,17 @@ python3Packages.buildPythonApplication rec {

  pythonImportsCheck = [ "gallery_dl" ];

  passthru.updateScript = gitUpdater { rev-prefix = "v"; };
  passthru.updateScript = nix-update-script { };

  meta = {
    changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
    description = "Command-line program to download image-galleries and -collections from several image hosting sites";
    homepage = "https://github.com/mikf/gallery-dl";
    changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
    license = lib.licenses.gpl2Only;
    mainProgram = "gallery-dl";
    maintainers = [
      lib.maintainers.dawidsowa
      lib.maintainers.lucasew
    maintainers = with lib.maintainers; [
      dawidsowa
      lucasew
    ];
  };
}