diff options
Diffstat (limited to 'manifest.scm')
-rw-r--r-- | manifest.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/manifest.scm b/manifest.scm new file mode 100644 index 0000000..640ac50 --- /dev/null +++ b/manifest.scm @@ -0,0 +1,36 @@ +(use-modules ((gnu packages image-processing) #:select (cimg)) + ((gnu packages python) #:select (python)) + ((gnu packages python-xyz) #:select (python-click python-exif-read)) + (guix build-system gnu) + (guix download) + (guix gexp) + ((guix licenses) #:prefix license:) + (guix packages)) + +(define-public phash + (package + (name "phash") + (version "0.9.6") + (source (origin + (method url-fetch) + (uri (string-append "https://www.phash.org/releases/pHash-" + version ".tar.gz")) + (sha256 + (base32 + "0d9920q9m2lncj44j02xlhw5d0068sc10c0mn4glkhpr2jh5i0iw")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags #~(list "--enable-audio-hash=no" + "--enable-video-hash=no"))) + (inputs + (list cimg)) + (home-page "https://www.phash.org/") + (synopsis "Perceptual hashing library") + (description "pHash is an open source software library released under the GPLv3 +license that implements several perceptual hashing algorithms, and +provides a C-like API to use those functions in your own programs. +pHash itself is written in C++.") + (license license:gpl3+))) + +(packages->manifest + (list phash python python-click python-exif-read)) |