From c30a26364fdf919deb9bc6bd907b75de58a17a7b Mon Sep 17 00:00:00 2001 From: Chris Marusich Date: Sat, 28 Apr 2018 14:03:47 -0700 Subject: [PATCH] gnu: Add mat. * gnu/packages/photo.scm (mat): New variable. --- gnu/packages/photo.scm | 52 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/gnu/packages/photo.scm b/gnu/packages/photo.scm index 2c0c2313f..a6380cc63 100644 --- a/gnu/packages/photo.scm +++ b/gnu/packages/photo.scm @@ -26,6 +26,7 @@ #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) + #:use-module (guix build-system python) #:use-module (guix download) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) @@ -52,6 +53,7 @@ #:use-module (gnu packages llvm) #:use-module (gnu packages man) #:use-module (gnu packages maths) + #:use-module (gnu packages music) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) @@ -521,3 +523,53 @@ workflow by facilitating the handling of large numbers of images. Most raw formats are supported, including Pentax Pixel Shift, Canon Dual-Pixel, and those from Foveon and X-Trans sensors.") (license license:gpl3+))) + +;; TODO: Add inputs for PDF support (e.g., Poppler, python-pdfrw). +;; TODO: Add inputs for GUI support (e.g., gi). +;; TODO: Fix some hard-coded paths. For example, get_datafile_path embeds +;; paths like "/usr/local/share/mat", which we should probably rewrite so that +;; they point to mat's output directory in the store. This specific example +;; causes "mat --list" to fail with an exception. +(define-public python2-mat + (package + (name "python2-mat") + (version "0.6.1") + (source (origin + (method url-fetch) + (uri (string-append + "https://mat.boum.org/files/mat-" version ".tar.xz")) + (sha256 + (base32 + "1faiiq7cjspafjjf4kmm7bbn8m506qgcijbizpgdvlaaapdyg0h7")))) + (build-system python-build-system) + (arguments + `(#:python ,python-2 + #:use-setuptools? #f)) + (propagated-inputs + `(("python2-pycairo" ,python2-pycairo) + ("python2-mutagen" ,python2-mutagen) + ("perl-image-exiftool" ,perl-image-exiftool))) + (native-inputs + `(("python2-distutils-extra" ,python2-distutils-extra) + ("intltool" ,intltool))) + (synopsis "Anonymize/remove metadata from files") + (description + "MAT (Metadata Anonymisation Toolkit) is a toolbox composed of a GUI +application, a CLI application and a library, to anonymize/remove metadata +from files. It supports the following file formats: + +@itemize @bullet +@item Portable Network Graphics (.png) +@item Joint Photographic Experts Group (.jpg, .jpeg, etc.) +@item Tagged Image File Format (.tif, tiff, etc.) +@item Open Documents (.odt, .odx, .ods, etc.) +@item Office OpenXml (.docx, .pptx, .xlsx, etc.) +@item Portable Document Fileformat (.pdf) +@item Tape Archives (.tar, .tar.bz2, etc.) +@item Moving Picture Experts Group (MPEG) (.mp3, .mp2, .mp1, etc.) +@item Ogg Vorbis (.ogg, etc.) +@item Free Lossless Audio Codec (.flac) +@item Torrent (.torrent) +@end itemize") + (home-page "https://mat.boum.org") + (license license:gpl2))) -- 2.17.0