Skip to content

Commit

Permalink
gallery-dl: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
DontEatOreo committed Jan 12, 2025
1 parent a040952 commit 7cb48f8
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions pkgs/by-name/ga/gallery-dl/package.nix
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
lib,
fetchFromGitHub,
gitUpdater,
nix-update-script,
yt-dlp,
python3Packages,
}:

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

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

Expand Down Expand Up @@ -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
];
};
}

0 comments on commit 7cb48f8

Please sign in to comment.