blob: 640ac50694921ae6b4833ff4267822aebb2a3534 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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))
|