From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:49663) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPNs8-0000sk-Kr for guix-patches@gnu.org; Tue, 29 Oct 2019 05:33:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPNs7-0002Rp-6j for guix-patches@gnu.org; Tue, 29 Oct 2019 05:33:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPNs7-0002RX-3L for guix-patches@gnu.org; Tue, 29 Oct 2019 05:33:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPNs6-00019l-VH for guix-patches@gnu.org; Tue, 29 Oct 2019 05:33:03 -0400 Subject: [bug#37975] [PATCH 2/2] gnu: Add udiskie. Resent-Message-ID: From: Guillaume Le Vaillant Date: Tue, 29 Oct 2019 10:31:35 +0100 Message-Id: <20191029093135.32727-2-glv@posteo.net> In-Reply-To: <20191029093135.32727-1-glv@posteo.net> References: <87r22v6gxv.fsf@yamatai> <20191029093135.32727-1-glv@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 37975@debbugs.gnu.org Cc: Guillaume Le Vaillant * gnu/packages/freedesktop.scm (udiskie): New variable. --- gnu/packages/freedesktop.scm | 61 ++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm index b18d71cb98..67d587ee48 100644 --- a/gnu/packages/freedesktop.scm +++ b/gnu/packages/freedesktop.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2018 Pierre Neidhardt ;;; Copyright © 2018 Stefan Stefanović ;;; Copyright © 2019 Reza Alizadeh Majd +;;; Copyright © 2019 Guillaume Le Vaillant ;;; ;;; This file is part of GNU Guix. ;;; @@ -74,6 +75,7 @@ #:use-module (gnu packages pkg-config) #:use-module (gnu packages polkit) #:use-module (gnu packages python) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-xyz) #:use-module (gnu packages sqlite) #:use-module (gnu packages valgrind) @@ -1439,3 +1441,62 @@ encoding names are iconv-compatible.") ;; This combines code under MPL 1.1, LGPL 2.1+, and GPL 2.0+, so the ;; combination is GPL 2.0+. (license license:gpl2+))) + +(define-public udiskie + (package + (name "udiskie") + (version "1.7.7") + (source + (origin + (method url-fetch) + (uri (pypi-uri "udiskie" version)) + (sha256 + (base32 + "121g9dkr7drv9igpdbcbkj59x15mm72rzp3198bp50zj0lr4wbvi")))) + (build-system python-build-system) + (native-inputs + `(("asciidoc" ,asciidoc) + ("gettext" ,gettext-minimal) + ("gobject-introspection" ,gobject-introspection))) + (inputs + `(("gobject-introspection" ,gobject-introspection) + ("gtk+" ,gtk+) + ("libnotify" ,libnotify) + ("udisks" ,udisks))) + (propagated-inputs + `(("python-docopt" ,python-docopt) + ("python-pygobject" ,python-pygobject) + ("python-keyutils" ,python-keyutils) + ("python-pyxdg" ,python-pyxdg) + ("python-pyyaml" ,python-pyyaml))) + (arguments + `(;; The tests want libappindicator, which is not available. + #:tests? #f + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-gi-typelib + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append out "/bin/udiskie") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + #t))))) + (home-page "https://github.com/coldfix/udiskie") + (synopsis "Automounter for removable media") + (description + "The udiskie program is a udisks2 front-end that allows to manage +removeable media such as CDs or flash drives from userspace. + +Its features include: + +@itemize +@item automount removable media +@item notifications +@item tray icon +@item command line tools for manual un-/mounting +@item LUKS encrypted devices +@item unlocking with keyfiles +@item loop devices (mounting iso archives) +@item password caching +@end itemize") + (license license:expat))) -- 2.23.0