From c6af1ee303fc686a3ab1371996a5499f1197b6f1 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Tue, 12 Aug 2025 14:35:52 +0200 Subject: [PATCH] gnu: gallery-dl: Update to 1.30.2. * gnu/packages/video.scm (gallery-dl): Update to 1.30.2. [source]: Switch to git-fetch. [arguments]<#:test-flags>: Ignore file full of network-related tests. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. [description]: Improve style, use yt-dlp instead of youtube-dl. Change-Id: I088a2aff75d9b12a29df94ec690f0c646bd27d7a Signed-off-by: Sharlatan Hellseher --- gnu/packages/video.scm | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index af2dabeceadc27cc894a908ced9684be82c7014c..5b8db6411f2d7c165c38c81f77a701860ef70d13 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -2944,23 +2944,30 @@ Jellyfin. It has support for various media files without transcoding.") (define-public gallery-dl (package (name "gallery-dl") - (version "1.28.2") - (source (origin - (method url-fetch) - (uri (string-append "https://github.com/mikf/gallery-dl" - "/releases/download/v" version "/gallery_dl-" - version ".tar.gz")) - (sha256 - (base32 - "0j4hxp1lbcxgg34ilzhcpxvswgnvvrlk66pn3w9ksv5g8jdz7rpi")))) - (build-system python-build-system) + (version "1.30.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mikf/gallery-dl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "15sgvk81s61v4yzzv1s5ksr4z77qhmv7ynyn34zrx5x41g72hgpz")))) + (build-system pyproject-build-system) + (arguments + (list + ;; XXX: A lot of those require network. + #:test-flags #~(list "--ignore=test/test_results.py"))) + (native-inputs (list python-pytest python-setuptools python-wheel)) (inputs (list python-requests ffmpeg)) (home-page "https://github.com/mikf/gallery-dl") (synopsis "Command-line program to download images from several sites") - (description "Gallery-dl is a command-line program that downloads image -galleries and collections from several image hosting sites. While this package -can use youtube-dl or yt-dlp packages to download videos, the focus is more on -images and image hosting sites.") + (description + "Gallery-dl is a command-line program that downloads image galleries and +collections from several image hosting sites. While this package can use +yt-dlp packages to download videos, the focus is more on images and image +hosting sites.") (license license:gpl2))) (define-public mpv-mpris