Browse Source

gnu: Add phockup.

* gnu/packages/image.scm (phockup): New variable.
Arun Isaac 1 year ago
No known key found for this signature in database GPG Key ID: 2E25EE8B61802BB3
  1. 55


@ -11,7 +11,7 @@
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <>
;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <>
;;; Copyright © 2016 Eric Bavier <>
;;; Copyright © 2016, 2017 Arun Isaac <>
;;; Copyright © 2016, 2017, 2020 Arun Isaac <>
;;; Copyright © 2016, 2017 Kei Kebreau <>
;;; Copyright © 2017 Nikita <>
;;; Copyright © 2017,2019,2020 Hartmut Goebel <>
@ -87,6 +87,7 @@
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build-system copy)
#:use-module (guix build-system meson)
#:use-module (guix build-system python)
#:use-module (guix build-system scons)
@ -2120,3 +2121,55 @@ It can create and edit indexed palette or 24bit RGB images, offers basic
painting and palette manipulation tools. It also handles JPEG, JPEG2000,
GIF, TIFF, WEBP, BMP, PNG, XPM formats.")
(license license:gpl3+)))
(define-public phockup
(name "phockup")
(version "1.5.9")
(method git-fetch)
(uri (git-reference
(url "")
(commit version)))
(file-name (git-file-name name version))
(build-system copy-build-system)
`(#:install-plan '(("src" "share/phockup/")
("" "share/phockup/"))
(modify-phases %standard-phases
(add-after 'unpack 'configure
(lambda* (#:key inputs #:allow-other-keys)
(substitute* (list "src/" "src/")
(string-append (assoc-ref inputs "perl-image-exiftool")
(add-before 'install 'check
(lambda _
(invoke "pytest")))
(add-after 'install 'install-bin
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(mkdir (string-append out "/bin"))
(symlink (string-append out "/share/phockup/")
(string-append out "/bin/phockup")))
`(("perl-image-exiftool" ,perl-image-exiftool)
("python" ,python)))
`(("python-pytest" ,python-pytest)
("python-pytest-mock" ,python-pytest-mock)))
(home-page "")
(synopsis "Organize photos and videos in folders")
(description "Phockup is a media sorting tool that uses creation date and
time information in photos and videos to organize them into folders by year,
month and day. All files which are not images or videos or those which do not
have creation date information will be placed in a folder called
(license license:expat)))