diff options
| author | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-13 23:46:32 +0900 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2025-10-13 23:53:07 +0900 |
| commit | b98213fe9a4eef0af756cc1d0df5db83afbb3fb1 (patch) | |
| tree | 368c74bc772a9724b7b708d188d74b8765879d5a /gnu/packages | |
| parent | 83e76aa1f3b7be79c10c7a160c4b4cc8e75020f7 (diff) | |
gnu: rapid-photo-downloader: Update to 0.9.36 and fix build.
* gnu/packages/photo.scm (rapid-photo-downloader): Update to 0.9.36.
[inputs]: Add python-babel, python-pymediainfo and
python-show-in-file-manager.
[arguments]: Use gexps.
[#:tests?]: New argument.
[#:phases] {patch-libmediainfo}: Delete.
{wrap}: Streamline.
{sanity-check}: Delete phase.
Change-Id: I0d08a97c8117b1a4e19076975250232c581dd911
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/photo.scm | 63 |
1 files changed, 29 insertions, 34 deletions
diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index c91e92fca24..3819b836522 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org> | 9 | ;;; Copyright © 2020 Sebastian Schott <sschott@mailbox.org> |
| 10 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> | 10 | ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com> |
| 11 | ;;; Copyright © 2020, 2024. 2021, 2022, 2024 Vinicius Monego <monego@posteo.net> | 11 | ;;; Copyright © 2020, 2024. 2021, 2022, 2024 Vinicius Monego <monego@posteo.net> |
| 12 | ;;; Copyright © 2025 Maxim Cournoyer <maxim@guixotic.coop> | ||
| 12 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> | 13 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> |
| 13 | ;;; Copyright © 2022, 2023, 2025 John Kehayias <john.kehayias@protonmail.com> | 14 | ;;; Copyright © 2022, 2023, 2025 John Kehayias <john.kehayias@protonmail.com> |
| 14 | ;;; Copyright © 2022 Sharlatan Hellseher <sharlatanus@gmail.com> | 15 | ;;; Copyright © 2022 Sharlatan Hellseher <sharlatanus@gmail.com> |
| @@ -107,7 +108,7 @@ | |||
| 107 | (define-public rapid-photo-downloader | 108 | (define-public rapid-photo-downloader |
| 108 | (package | 109 | (package |
| 109 | (name "rapid-photo-downloader") | 110 | (name "rapid-photo-downloader") |
| 110 | (version "0.9.18") | 111 | (version "0.9.36") |
| 111 | (source (origin | 112 | (source (origin |
| 112 | (method url-fetch) | 113 | (method url-fetch) |
| 113 | (uri (string-append "https://launchpad.net/rapid/pyqt/" | 114 | (uri (string-append "https://launchpad.net/rapid/pyqt/" |
| @@ -115,12 +116,12 @@ | |||
| 115 | version ".tar.gz")) | 116 | version ".tar.gz")) |
| 116 | (sha256 | 117 | (sha256 |
| 117 | (base32 | 118 | (base32 |
| 118 | "15p7sssg6vmqbm5xnc4j5dr89d7gl7y5qyq44a240yl5aqkjnybw")))) | 119 | "1r354y20rkjp034mjbmgk7zd39yxd89yqrbdlx5im4xvw8z3dp53")))) |
| 119 | (build-system python-build-system) | 120 | (build-system python-build-system) |
| 120 | (native-inputs | 121 | (native-inputs |
| 121 | (list file intltool gobject-introspection)) | 122 | (list file intltool gobject-introspection)) |
| 122 | (inputs | 123 | (inputs |
| 123 | `(("bash" ,bash-minimal) ; for wrap-program | 124 | `(("bash" ,bash-minimal) ; for wrap-program |
| 124 | ("gdk-pixbuf" ,gdk-pixbuf) | 125 | ("gdk-pixbuf" ,gdk-pixbuf) |
| 125 | ("gexiv2" ,gexiv2) | 126 | ("gexiv2" ,gexiv2) |
| 126 | ("gst-libav" ,gst-libav) | 127 | ("gst-libav" ,gst-libav) |
| @@ -131,9 +132,11 @@ | |||
| 131 | ("libnotify" ,libnotify) | 132 | ("libnotify" ,libnotify) |
| 132 | ("libmediainfo" ,libmediainfo) | 133 | ("libmediainfo" ,libmediainfo) |
| 133 | ("usdisks" ,udisks) | 134 | ("usdisks" ,udisks) |
| 135 | ("python-babel" ,python-babel) | ||
| 134 | ("python-pyqt" ,python-pyqt) | 136 | ("python-pyqt" ,python-pyqt) |
| 135 | ("python-pygobject" ,python-pygobject) | 137 | ("python-pygobject" ,python-pygobject) |
| 136 | ("python-gphoto2" ,python-gphoto2) | 138 | ("python-gphoto2" ,python-gphoto2) |
| 139 | ("python-pymediainfo" ,python-pymediainfo) | ||
| 137 | ("python-pyzmq" ,python-pyzmq) | 140 | ("python-pyzmq" ,python-pyzmq) |
| 138 | ("python-tornado" ,python-tornado) | 141 | ("python-tornado" ,python-tornado) |
| 139 | ("python-psutil" ,python-psutil) | 142 | ("python-psutil" ,python-psutil) |
| @@ -143,6 +146,7 @@ | |||
| 143 | ("python-easygui" ,python-easygui) | 146 | ("python-easygui" ,python-easygui) |
| 144 | ("python-colour" ,python-colour) | 147 | ("python-colour" ,python-colour) |
| 145 | ("python-pymediainfo" ,python-pymediainfo) | 148 | ("python-pymediainfo" ,python-pymediainfo) |
| 149 | ("python-show-in-file-manager" ,python-show-in-file-manager) | ||
| 146 | ("python-sortedcontainers" ,python-sortedcontainers) | 150 | ("python-sortedcontainers" ,python-sortedcontainers) |
| 147 | ("python-rawkit" ,python-rawkit) | 151 | ("python-rawkit" ,python-rawkit) |
| 148 | ("python-requests" ,python-requests) | 152 | ("python-requests" ,python-requests) |
| @@ -151,37 +155,28 @@ | |||
| 151 | ("python-tenacity" ,python-tenacity) | 155 | ("python-tenacity" ,python-tenacity) |
| 152 | ("perl-image-exiftool" ,perl-image-exiftool))) | 156 | ("perl-image-exiftool" ,perl-image-exiftool))) |
| 153 | (arguments | 157 | (arguments |
| 154 | `(#:phases | 158 | (list |
| 155 | (modify-phases %standard-phases | 159 | #:tests? #f ;no test suite |
| 156 | (add-after 'unpack 'patch-libmediainfo | 160 | #:phases |
| 157 | (lambda _ | 161 | #~(modify-phases %standard-phases |
| 158 | (substitute* "raphodo/metadatavideo.py" | 162 | (add-after 'install 'wrap |
| 159 | (("pymedia_library_file = 'libmediainfo.so.0'") | 163 | (lambda* (#:key inputs #:allow-other-keys) |
| 160 | (string-append "pymedia_library_file = '" | 164 | (let ((path (string-join |
| 161 | (assoc-ref %build-inputs "libmediainfo") | 165 | (list (string-append |
| 162 | "/lib/libmediainfo.so.0'"))) | 166 | (assoc-ref inputs "perl-image-exiftool") |
| 163 | #t)) | 167 | "/bin")) |
| 164 | (add-after 'install 'wrap | 168 | ":")) |
| 165 | (lambda* (#:key inputs outputs #:allow-other-keys) | 169 | (gi-typelib-path (getenv "GI_TYPELIB_PATH")) |
| 166 | (let ((out (assoc-ref outputs "out")) | 170 | (python-path (getenv "GUIX_PYTHONPATH"))) |
| 167 | (path (string-join | 171 | (wrap-program (string-append #$output |
| 168 | (list (string-append | 172 | "/bin/rapid-photo-downloader") |
| 169 | (assoc-ref inputs "perl-image-exiftool") | 173 | `("PATH" ":" prefix (,path)) |
| 170 | "/bin")) | 174 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) |
| 171 | ":")) | 175 | `("GUIX_PYTHONPATH" ":" prefix (,python-path)))))) |
| 172 | (gi-typelib-path (getenv "GI_TYPELIB_PATH")) | 176 | ;; The program fails to load in the build environment, with an |
| 173 | (python-path (getenv "GUIX_PYTHONPATH"))) | 177 | ;; assertion error on 'Path(data_home).is_dir()'. |
| 174 | (for-each | 178 | (delete 'sanity-check)))) |
| 175 | (lambda (program) | 179 | |
| 176 | (wrap-program program | ||
| 177 | `("PATH" ":" prefix (,path)) | ||
| 178 | `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)) | ||
| 179 | `("GUIX_PYTHONPATH" ":" prefix (,python-path)))) | ||
| 180 | (map (lambda (name) | ||
| 181 | (string-append out "/bin/" name)) | ||
| 182 | '("analyze-pv-structure" | ||
| 183 | "rapid-photo-downloader")))) | ||
| 184 | #t))))) | ||
| 185 | (home-page "https://www.damonlynch.net/rapid/") | 180 | (home-page "https://www.damonlynch.net/rapid/") |
| 186 | (synopsis "Import photos and videos from cameras, phones and memory cards") | 181 | (synopsis "Import photos and videos from cameras, phones and memory cards") |
| 187 | (description "Import photos and videos from cameras, phones and memory | 182 | (description "Import photos and videos from cameras, phones and memory |
