Commit | Line | Data |
---|---|---|
233e7676 | 1 | ;;; GNU Guix --- Functional package management for GNU |
63e8bb12 | 2 | ;;; Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org> |
a02ee3d7 | 3 | ;;; Copyright © 2013, 2015 Andreas Enge <andreas@enge.fr> |
4380a7b4 | 4 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
3a7261bf | 5 | ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org> |
5dabdb75 | 6 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
4f2ca234 | 7 | ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> |
a05d1d82 | 8 | ;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> |
81068f17 | 9 | ;;; Copyright © 2016 Nils Gillmann <ng0@libertad.pw> |
8d1939e4 | 10 | ;;; |
233e7676 | 11 | ;;; This file is part of GNU Guix. |
8d1939e4 | 12 | ;;; |
233e7676 | 13 | ;;; GNU Guix is free software; you can redistribute it and/or modify it |
8d1939e4 LC |
14 | ;;; under the terms of the GNU General Public License as published by |
15 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
16 | ;;; your option) any later version. | |
17 | ;;; | |
233e7676 | 18 | ;;; GNU Guix is distributed in the hope that it will be useful, but |
8d1939e4 LC |
19 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
20 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
21 | ;;; GNU General Public License for more details. | |
22 | ;;; | |
23 | ;;; You should have received a copy of the GNU General Public License | |
233e7676 | 24 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
8d1939e4 | 25 | |
1ffa7090 | 26 | (define-module (gnu packages gnupg) |
07157e8a | 27 | #:use-module ((guix licenses) #:prefix license:) |
a05d1d82 | 28 | #:use-module (gnu packages) |
7b40296f | 29 | #:use-module (gnu packages adns) |
01e11826 AE |
30 | #:use-module (gnu packages curl) |
31 | #:use-module (gnu packages openldap) | |
ea4d96c6 | 32 | #:use-module (gnu packages perl) |
1ffa7090 | 33 | #:use-module (gnu packages pth) |
ea4d96c6 | 34 | #:use-module (gnu packages python) |
54df7558 | 35 | #:use-module (gnu packages qt) |
1ffa7090 | 36 | #:use-module (gnu packages readline) |
07157e8a | 37 | #:use-module (gnu packages compression) |
2d12284d | 38 | #:use-module (gnu packages databases) |
40d806af LC |
39 | #:use-module (gnu packages gtk) |
40 | #:use-module (gnu packages glib) | |
d1d75c6a | 41 | #:use-module (gnu packages gnome) |
40d806af LC |
42 | #:use-module (gnu packages pkg-config) |
43 | #:use-module (gnu packages ncurses) | |
a7fd7b68 | 44 | #:use-module (gnu packages tls) |
8d1939e4 | 45 | #:use-module (guix packages) |
87f5d366 | 46 | #:use-module (guix download) |
14e2e44d LC |
47 | #:use-module (guix build-system gnu) |
48 | #:use-module (guix build-system python)) | |
8d1939e4 LC |
49 | |
50 | (define-public libgpg-error | |
51 | (package | |
52 | (name "libgpg-error") | |
f10e7ef4 | 53 | (version "1.22") |
8d1939e4 LC |
54 | (source |
55 | (origin | |
87f5d366 | 56 | (method url-fetch) |
0db342a5 | 57 | (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-" |
8d1939e4 LC |
58 | version ".tar.bz2")) |
59 | (sha256 | |
60 | (base32 | |
f10e7ef4 | 61 | "0ywxwswizmkyciy480kzczxn6nhbgzf3z8my4nk43nvv67k4x87j")))) |
8d1939e4 | 62 | (build-system gnu-build-system) |
72fb1b24 | 63 | (home-page "https://gnupg.org") |
35b9e423 | 64 | (synopsis "Library of error values for GnuPG components") |
8d1939e4 LC |
65 | (description |
66 | "Libgpg-error is a small library that defines common error values | |
67 | for all GnuPG components. Among these are GPG, GPGSM, GPGME, | |
68 | GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard | |
69 | Daemon and possibly more in the future.") | |
63e8bb12 LC |
70 | (license license:lgpl2.0+) |
71 | (properties '((ftp-server . "ftp.gnupg.org") | |
72 | (ftp-directory . "/gcrypt/libgpg-error"))))) | |
8d1939e4 LC |
73 | |
74 | (define-public libgcrypt | |
75 | (package | |
76 | (name "libgcrypt") | |
6ccf3477 | 77 | (version "1.7.3") |
84a3e3b7 LC |
78 | (source (origin |
79 | (method url-fetch) | |
80 | (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-" | |
81 | version ".tar.bz2")) | |
82 | (sha256 | |
83 | (base32 | |
6ccf3477 | 84 | "0wbh6fq5zi9wg2xcfvfpwh7dv52jihivx1vm4h91c2kx0w8n3b6x")))) |
8d1939e4 LC |
85 | (build-system gnu-build-system) |
86 | (propagated-inputs | |
e0932742 | 87 | `(("libgpg-error-host" ,libgpg-error))) |
e766f699 JD |
88 | (native-inputs |
89 | ;; Needed here for the 'gpg-error' program. | |
e0932742 | 90 | `(("libgpg-error-native" ,libgpg-error))) |
e766f699 JD |
91 | (arguments |
92 | ;; The '--with-gpg-error-prefix' argument is needed because otherwise | |
93 | ;; 'configure' uses 'gpg-error-config' to determine the '-L' flag, and | |
94 | ;; the 'gpg-error-config' it runs is the native one---i.e., the wrong one. | |
95 | `(#:configure-flags | |
96 | (list (string-append "--with-gpg-error-prefix=" | |
e0932742 | 97 | (assoc-ref %build-inputs "libgpg-error-host"))))) |
40fed2d8 | 98 | (outputs '("out" "debug")) |
72fb1b24 | 99 | (home-page "https://gnupg.org/") |
f50d2669 | 100 | (synopsis "Cryptographic function library") |
8d1939e4 | 101 | (description |
a22dc0c4 LC |
102 | "Libgcrypt is a general-purpose cryptographic library. It provides the |
103 | standard cryptographic building blocks such as symmetric ciphers, hash | |
104 | algorithms, public key algorithms, large integer functions and random number | |
105 | generation.") | |
63e8bb12 LC |
106 | (license license:lgpl2.0+) |
107 | (properties '((ftp-server . "ftp.gnupg.org") | |
108 | (ftp-directory . "/gcrypt/libgcrypt"))))) | |
8d1939e4 | 109 | |
a53421fd AE |
110 | (define-public libgcrypt-1.5 |
111 | (package (inherit libgcrypt) | |
c2cf198f | 112 | (version "1.5.6") |
a53421fd AE |
113 | (source |
114 | (origin | |
115 | (method url-fetch) | |
116 | (uri (string-append "mirror://gnupg/libgcrypt/libgcrypt-" | |
117 | version ".tar.bz2")) | |
118 | (sha256 | |
119 | (base32 | |
c2cf198f | 120 | "0ydy7bgra5jbq9mxl5x031nif3m6y3balc6ndw2ngj11wnsjc61h")))))) |
90e20240 | 121 | |
8d1939e4 LC |
122 | (define-public libassuan |
123 | (package | |
124 | (name "libassuan") | |
f04a7943 | 125 | (version "2.4.3") |
8d1939e4 LC |
126 | (source |
127 | (origin | |
87f5d366 | 128 | (method url-fetch) |
0db342a5 | 129 | (uri (string-append "mirror://gnupg/libassuan/libassuan-" |
8d1939e4 LC |
130 | version ".tar.bz2")) |
131 | (sha256 | |
132 | (base32 | |
f04a7943 | 133 | "0w9bmasln4z8mn16s1is55a06w3nv8jbyal496z5jvr5vcxkm112")))) |
8d1939e4 LC |
134 | (build-system gnu-build-system) |
135 | (propagated-inputs | |
136 | `(("libgpg-error" ,libgpg-error) ("pth" ,pth))) | |
72fb1b24 | 137 | (home-page "https://gnupg.org") |
8d1939e4 | 138 | (synopsis |
35b9e423 | 139 | "IPC library used by GnuPG and related software") |
8d1939e4 LC |
140 | (description |
141 | "Libassuan is a small library implementing the so-called Assuan | |
142 | protocol. This protocol is used for IPC between most newer | |
143 | GnuPG components. Both, server and client side functions are | |
144 | provided.") | |
63e8bb12 LC |
145 | (license license:lgpl2.0+) |
146 | (properties '((ftp-server . "ftp.gnupg.org") | |
147 | (ftp-directory . "/gcrypt/libassuan"))))) | |
8d1939e4 LC |
148 | |
149 | (define-public libksba | |
150 | (package | |
151 | (name "libksba") | |
424fbe80 | 152 | (version "1.3.4") |
8d1939e4 LC |
153 | (source |
154 | (origin | |
87f5d366 | 155 | (method url-fetch) |
8d1939e4 | 156 | (uri (string-append |
0db342a5 | 157 | "mirror://gnupg/libksba/libksba-" |
8d1939e4 LC |
158 | version ".tar.bz2")) |
159 | (sha256 | |
160 | (base32 | |
424fbe80 | 161 | "0kxdb02z41cwm1xbwfwj9nbc0dzjhwyq8c475mlhhmpcxcy8ihpn")))) |
8d1939e4 LC |
162 | (build-system gnu-build-system) |
163 | (propagated-inputs | |
164 | `(("libgpg-error" ,libgpg-error))) | |
e766f699 JD |
165 | (native-inputs |
166 | `(("libgpg-error" ,libgpg-error))) | |
167 | (arguments | |
168 | `(#:configure-flags | |
169 | (list ,@(if (%current-target-system) | |
170 | '("CC_FOR_BUILD=gcc") | |
171 | '()) | |
172 | (string-append "--with-gpg-error-prefix=" | |
173 | (assoc-ref %build-inputs "libgpg-error"))))) | |
72fb1b24 | 174 | (home-page "https://www.gnupg.org") |
35b9e423 | 175 | (synopsis "CMS and X.509 access library") |
8d1939e4 LC |
176 | (description |
177 | "KSBA (pronounced Kasbah) is a library to make X.509 certificates | |
178 | as well as the CMS easily accessible by other applications. Both | |
179 | specifications are building blocks of S/MIME and TLS.") | |
63e8bb12 LC |
180 | (license license:gpl3+) |
181 | (properties '((ftp-server . "ftp.gnupg.org") | |
182 | (ftp-directory . "/gcrypt/libksba"))))) | |
8d1939e4 | 183 | |
c18ea90f AE |
184 | (define-public npth |
185 | (package | |
186 | (name "npth") | |
b96485b9 | 187 | (version "1.2") |
c18ea90f AE |
188 | (source |
189 | (origin | |
190 | (method url-fetch) | |
191 | (uri (string-append | |
192 | "mirror://gnupg/npth/npth-" | |
193 | version ".tar.bz2")) | |
194 | (sha256 | |
195 | (base32 | |
b96485b9 | 196 | "12n0nvhw4fzwp0k7gjv3rc6pdml0qiinbbfiz4ilg6pl5kdxvnvd")))) |
c18ea90f | 197 | (build-system gnu-build-system) |
72fb1b24 | 198 | (home-page "https://www.gnupg.org") |
c18ea90f AE |
199 | (synopsis "Non-preemptive thread library") |
200 | (description | |
201 | "Npth is a library to provide the GNU Pth API and thus a non-preemptive | |
202 | threads implementation. | |
203 | ||
204 | In contrast to GNU Pth is is based on the system's standard threads | |
205 | implementation. This allows the use of libraries which are not | |
206 | compatible to GNU Pth.") | |
07157e8a | 207 | (license (list license:lgpl3+ license:gpl2+)))) ; dual license |
c18ea90f | 208 | |
8d1939e4 LC |
209 | (define-public gnupg |
210 | (package | |
211 | (name "gnupg") | |
1ee4274c | 212 | (version "2.1.13") |
58970d6a LC |
213 | (source (origin |
214 | (method url-fetch) | |
215 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
216 | ".tar.bz2")) | |
217 | (sha256 | |
218 | (base32 | |
1ee4274c | 219 | "0xcn46vcb5x5qx0bc803vpzhzhnn6wfhp7x71w9n1ahx4ak877ag")))) |
8d1939e4 | 220 | (build-system gnu-build-system) |
08fa45b1 MW |
221 | (native-inputs |
222 | `(("pkg-config" ,pkg-config))) | |
8d1939e4 | 223 | (inputs |
b65249cc EF |
224 | `(("adns" ,adns) |
225 | ("bzip2" ,bzip2) | |
01e11826 | 226 | ("curl" ,curl) |
08fa45b1 | 227 | ("gnutls" ,gnutls) |
8d1939e4 LC |
228 | ("libassuan" ,libassuan) |
229 | ("libgcrypt" ,libgcrypt) | |
01e11826 | 230 | ("libgpg-error" ,libgpg-error) |
8d1939e4 | 231 | ("libksba" ,libksba) |
cd064df7 | 232 | ("npth" ,npth) |
01e11826 | 233 | ("openldap" ,openldap) |
2d12284d EF |
234 | ("readline" ,readline) |
235 | ("sqlite" ,sqlite) | |
236 | ("zlib" ,zlib))) | |
30e9cbb4 | 237 | (arguments |
163708a6 LF |
238 | `(#:configure-flags '("--enable-gpg2-is-gpg") |
239 | #:phases | |
45477c6a EF |
240 | (modify-phases %standard-phases |
241 | (add-before 'configure 'patch-config-files | |
242 | (lambda _ | |
243 | (substitute* "tests/openpgp/defs.inc" | |
244 | (("/bin/pwd") (which "pwd"))) | |
245 | #t))))) | |
72fb1b24 | 246 | (home-page "https://gnupg.org/") |
f50d2669 | 247 | (synopsis "GNU Privacy Guard") |
8d1939e4 | 248 | (description |
a22dc0c4 LC |
249 | "The GNU Privacy Guard is a complete implementation of the OpenPGP |
250 | standard. It is used to encrypt and sign data and communication. It | |
251 | features powerful key management and the ability to access public key | |
79c311b8 | 252 | servers. It includes several libraries: libassuan (IPC between GnuPG |
58970d6a LC |
253 | components), libgpg-error (centralized GnuPG error values), and |
254 | libskba (working with X.509 certificates and CMS data).") | |
63e8bb12 LC |
255 | (license license:gpl3+) |
256 | (properties '((ftp-server . "ftp.gnupg.org") | |
257 | (ftp-directory . "/gcrypt/gnupg"))))) | |
ea4d96c6 | 258 | |
cd064df7 AE |
259 | (define-public gnupg-2.0 |
260 | (package (inherit gnupg) | |
b5afe6f0 | 261 | (version "2.0.30") |
cd064df7 AE |
262 | (source (origin |
263 | (method url-fetch) | |
264 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
265 | ".tar.bz2")) | |
266 | (sha256 | |
267 | (base32 | |
b5afe6f0 | 268 | "0wax4cy14hh0h7kg9hj0hjn9424b71z8lrrc5kbsasrn9xd7hag3")))) |
08fa45b1 | 269 | (native-inputs '()) |
cd064df7 | 270 | (inputs |
7b40296f EF |
271 | `(("adns" ,adns) |
272 | ("bzip2" ,bzip2) | |
cd064df7 AE |
273 | ("curl" ,curl) |
274 | ("libassuan" ,libassuan) | |
275 | ("libgcrypt" ,libgcrypt) | |
276 | ("libgpg-error" ,libgpg-error) | |
277 | ("libksba" ,libksba) | |
278 | ("pth" ,pth) | |
279 | ("openldap" ,openldap) | |
07157e8a | 280 | ("zlib" ,zlib) |
cd064df7 AE |
281 | ("readline" ,readline))) |
282 | (arguments | |
283 | `(#:phases | |
80c47cf8 | 284 | (modify-phases %standard-phases |
6b547d22 LC |
285 | (add-before 'configure 'patch-config-files |
286 | (lambda _ | |
287 | (substitute* "tests/openpgp/Makefile.in" | |
80c47cf8 | 288 | (("/bin/sh") (which "bash"))) |
bc85b127 LC |
289 | #t)) |
290 | (add-after 'install 'rename-v2-commands | |
291 | (lambda* (#:key outputs #:allow-other-keys) | |
292 | ;; Upstream suggests removing the trailing '2' from command names: | |
293 | ;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22883#58>. | |
294 | (let ((out (assoc-ref outputs "out"))) | |
295 | (with-directory-excursion (string-append out "/bin") | |
296 | (rename-file "gpgv2" "gpgv") | |
297 | (rename-file "gpg2" "gpg") | |
298 | ||
299 | ;; Keep the old name around to ease transition. | |
300 | (symlink "gpgv" "gpgv2") | |
301 | (symlink "gpg" "gpg2") | |
302 | #t))))))))) | |
cd064df7 | 303 | |
5249045c MW |
304 | (define-public gnupg-1 |
305 | (package (inherit gnupg) | |
866b05fd | 306 | (version "1.4.21") |
58970d6a LC |
307 | (source (origin |
308 | (method url-fetch) | |
309 | (uri (string-append "mirror://gnupg/gnupg/gnupg-" version | |
310 | ".tar.bz2")) | |
311 | (sha256 | |
312 | (base32 | |
866b05fd | 313 | "0xi2mshq8f6zbarb5f61c9w2qzwrdbjm4q8fqsrwlzc51h8a6ivb")))) |
08fa45b1 | 314 | (native-inputs '()) |
5249045c | 315 | (inputs |
07157e8a LC |
316 | `(("zlib" ,zlib) |
317 | ("bzip2" ,bzip2) | |
5249045c MW |
318 | ("curl" ,curl) |
319 | ("readline" ,readline) | |
320 | ("libgpg-error" ,libgpg-error))) | |
321 | (arguments | |
29d90757 LF |
322 | `(#:phases |
323 | (modify-phases %standard-phases | |
324 | (add-after 'unpack 'patch-check-sh | |
325 | (lambda _ | |
326 | (substitute* "checks/Makefile.in" | |
327 | (("/bin/sh") (which "bash")))))))))) | |
5249045c | 328 | |
09d5c166 AE |
329 | (define-public gpgme |
330 | (package | |
331 | (name "gpgme") | |
231dd023 | 332 | (version "1.6.0") |
09d5c166 AE |
333 | (source |
334 | (origin | |
335 | (method url-fetch) | |
336 | (uri (string-append "mirror://gnupg/gpgme/gpgme-" version | |
337 | ".tar.bz2")) | |
338 | (sha256 | |
339 | (base32 | |
231dd023 | 340 | "17892sclz3yg45wbyqqrzzpq3l0icbnfl28f101b3062g8cy97dh")))) |
09d5c166 | 341 | (build-system gnu-build-system) |
68640c3c MW |
342 | (propagated-inputs |
343 | ;; Needs to be propagated because gpgme.h includes gpg-error.h. | |
344 | `(("libgpg-error" ,libgpg-error))) | |
09d5c166 | 345 | (inputs |
ae3bded6 | 346 | `(("gnupg" ,gnupg-2.0) |
68640c3c | 347 | ("libassuan" ,libassuan))) |
e6a83df1 | 348 | (arguments '(#:make-flags '("GPG=gpg2"))) |
72fb1b24 | 349 | (home-page "https://www.gnupg.org/related_software/gpgme/") |
35b9e423 | 350 | (synopsis "Library providing simplified access to GnuPG functionality") |
09d5c166 AE |
351 | (description |
352 | "GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG | |
353 | easier for applications. It provides a High-Level Crypto API for encryption, | |
354 | decryption, signing, signature verification and key management. Currently | |
355 | it uses GnuPG as its backend but the API isn't restricted to this engine. | |
356 | ||
357 | Because the direct use of GnuPG from an application can be a complicated | |
358 | programming task, it is suggested that all software should try to use GPGME | |
359 | instead. This way bug fixes or improvements can be done at a central place | |
360 | and every application benefits from this.") | |
07157e8a | 361 | (license license:lgpl2.1+))) |
09d5c166 | 362 | |
a05d1d82 CAW |
363 | (define-public python-pygpgme |
364 | (package | |
365 | (name "python-pygpgme") | |
366 | (version "0.3") | |
367 | (source | |
368 | (origin | |
369 | (method url-fetch) | |
370 | (uri (pypi-uri "pygpgme" version)) | |
371 | (sha256 | |
372 | (base32 | |
373 | "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z")) | |
374 | ;; Unfortunately, we have to disable some tests due to some gpg-agent | |
375 | ;; goofiness... see: | |
376 | ;; https://bugs.launchpad.net/pygpgme/+bug/999949 | |
fc1adab1 | 377 | (patches (search-patches "pygpgme-disable-problematic-tests.patch")))) |
a05d1d82 CAW |
378 | (arguments |
379 | `(#:phases | |
380 | (modify-phases %standard-phases | |
381 | (add-before 'build 'make-build | |
382 | (lambda _ | |
383 | (zero? (system* "make" "build")))) | |
384 | (replace 'check | |
385 | (lambda _ | |
386 | (zero? (system* "make" "check"))))))) | |
387 | (build-system python-build-system) | |
388 | (inputs | |
389 | `(;; setuptools required for python-2 variant | |
390 | ("python-setuptools" ,python-setuptools) | |
391 | ("gnupg" ,gnupg-2.0) | |
392 | ("gpgme" ,gpgme))) | |
393 | (home-page "https://launchpad.net/pygpgme") | |
394 | (synopsis "Python module for working with OpenPGP messages") | |
395 | (description | |
396 | "PyGPGME is a Python module that lets you sign, verify, encrypt and | |
397 | decrypt messages using the OpenPGP format by making use of GPGME.") | |
398 | (license license:lgpl2.1+))) | |
399 | ||
400 | (define-public python2-pygpgme | |
401 | (package-with-python2 python-pygpgme)) | |
402 | ||
22af9029 RW |
403 | (define-public python-gnupg |
404 | (package | |
405 | (name "python-gnupg") | |
5b669ba1 | 406 | (version "0.3.8") |
22af9029 RW |
407 | (source |
408 | (origin | |
409 | (method url-fetch) | |
5b669ba1 | 410 | (uri (pypi-uri "python-gnupg" version)) |
22af9029 RW |
411 | (sha256 |
412 | (base32 | |
5b669ba1 | 413 | "0nkbs9c8f30lra7ca39kg91x8cyxn0jb61vih4qky839gpbwwwiq")))) |
22af9029 RW |
414 | (build-system python-build-system) |
415 | (arguments | |
416 | `(#:phases | |
417 | (modify-phases %standard-phases | |
418 | (replace 'check | |
419 | (lambda* (#:key inputs #:allow-other-keys) | |
420 | (substitute* "test_gnupg.py" | |
421 | ;; Test keyrings are missing, so this test fails. | |
422 | (("'test_scan_keys'") "True") | |
423 | (("def test_scan_keys") "def disabled__scan_keys") | |
424 | ;; Unsure why this test fails. | |
425 | (("'test_search_keys'") "True") | |
426 | (("def test_search_keys") "def disabled__search_keys")) | |
427 | (setenv "GPGBINARY" "gpg") | |
428 | (setenv "USERNAME" "guixbuilder") | |
429 | ;; The doctests are extremely slow and sometimes time out, | |
430 | ;; so we disable them. | |
431 | (zero? (system* "python" | |
432 | "test_gnupg.py" "--no-doctests"))))))) | |
433 | (native-inputs | |
434 | `(("gnupg" ,gnupg-1))) | |
72fb1b24 | 435 | (home-page "https://packages.python.org/python-gnupg/index.html") |
22af9029 RW |
436 | (synopsis "Wrapper for the GNU Privacy Guard") |
437 | (description | |
438 | "This module allows easy access to GnuPG’s key management, encryption | |
439 | and signature functionality from Python programs.") | |
440 | (license license:bsd-3))) | |
441 | ||
442 | (define-public python2-gnupg | |
443 | (package-with-python2 python-gnupg)) | |
444 | ||
ea4d96c6 AE |
445 | (define-public pius |
446 | (package | |
447 | (name "pius") | |
11b953a1 | 448 | (version "2.2.2") |
ea4d96c6 AE |
449 | (source (origin |
450 | (method url-fetch) | |
e2e3600f LC |
451 | (uri (string-append |
452 | "https://github.com/jaymzh/pius/releases/download/v" | |
453 | version "/pius-" version ".tar.bz2")) | |
454 | (sha256 | |
455 | (base32 | |
11b953a1 | 456 | "0k94mlr7l12mplph7pdgjbampqha47d8mfjq69n4xm80qwbn1rq1")))) |
14e2e44d LC |
457 | (build-system python-build-system) |
458 | (inputs `(("perl" ,perl) ;for 'pius-party-worksheet' | |
31fbf4b6 | 459 | ("gpg" ,gnupg-2.0))) ;2.1 fails to talk to gpg-agent 2.0 |
ea4d96c6 AE |
460 | (arguments |
461 | `(#:tests? #f | |
14e2e44d | 462 | #:python ,python-2 ;uses the Python 2 'print' syntax |
ea4d96c6 | 463 | #:phases |
14e2e44d LC |
464 | (modify-phases %standard-phases |
465 | (add-before | |
466 | 'build 'set-gpg-file-name | |
467 | (lambda* (#:key inputs outputs #:allow-other-keys) | |
468 | (let* ((gpg (string-append (assoc-ref inputs "gpg") | |
469 | "/bin/gpg2"))) | |
470 | (substitute* "libpius/constants.py" | |
e2e3600f | 471 | (("/usr/bin/gpg2") gpg)))))))) |
9eed6f9b | 472 | (synopsis "Programs to simplify GnuPG key signing") |
ea4d96c6 AE |
473 | (description |
474 | "Pius (PGP Individual UID Signer) helps attendees of PGP keysigning | |
35b9e423 EB |
475 | parties. It is the main utility and makes it possible to quickly and easily |
476 | sign each UID on a set of PGP keys. It is designed to take the pain out of | |
ea4d96c6 AE |
477 | the sign-all-the-keys part of PGP Keysigning Party while adding security |
478 | to the process. | |
479 | ||
480 | pius-keyring-mgr and pius-party-worksheet help organisers of | |
481 | PGP keysigning parties.") | |
07157e8a | 482 | (license license:gpl2) |
72fb1b24 | 483 | (home-page "https://www.phildev.net/pius/index.shtml"))) |
96be765c AE |
484 | |
485 | (define-public signing-party | |
486 | (package | |
487 | (name "signing-party") | |
488 | (version "1.1.4") | |
489 | (source (origin | |
490 | (method url-fetch) | |
491 | (uri (string-append "http://ftp.debian.org/debian/pool/main/s/signing-party/signing-party_" | |
492 | version ".orig.tar.gz")) | |
493 | (sha256 (base32 | |
494 | "188gp0prbh8qs29lq3pbf0qibfd6jq4fk7i0pfrybl8aahvm84rx")))) | |
495 | (build-system gnu-build-system) | |
496 | (inputs `(("perl" ,perl))) | |
497 | (arguments | |
498 | `(#:tests? #f | |
499 | #:phases | |
d4bf49b1 EB |
500 | (alist-cons-after |
501 | 'unpack 'remove-spurious-links | |
502 | (lambda _ (delete-file "keyanalyze/pgpring/depcomp")) | |
96be765c AE |
503 | (alist-replace |
504 | 'configure | |
505 | (lambda* (#:key outputs #:allow-other-keys) | |
506 | (let ((out (assoc-ref outputs "out"))) | |
507 | (substitute* "keyanalyze/Makefile" | |
508 | (("LDLIBS") (string-append "CC=" (which "gcc") "\nLDLIBS"))) | |
509 | (substitute* "keyanalyze/Makefile" | |
510 | (("./configure") (string-append "./configure --prefix=" out))) | |
511 | (substitute* "keyanalyze/pgpring/configure" | |
512 | (("/bin/sh") (which "bash"))) | |
513 | (substitute* "gpgwrap/Makefile" | |
514 | (("\\} clean") (string-append "} clean\ninstall:\n\tinstall -D bin/gpgwrap " | |
515 | out "/bin/gpgwrap\n"))) | |
516 | (substitute* '("gpgsigs/Makefile" "keyanalyze/Makefile" | |
517 | "keylookup/Makefile" "sig2dot/Makefile" | |
518 | "springgraph/Makefile") | |
519 | (("/usr") out)))) | |
520 | (alist-replace | |
521 | 'install | |
522 | (lambda* (#:key outputs #:allow-other-keys #:rest args) | |
523 | (let ((out (assoc-ref outputs "out")) | |
524 | (install (assoc-ref %standard-phases 'install))) | |
525 | (apply install args) | |
526 | (for-each | |
527 | (lambda (dir file) | |
528 | (copy-file (string-append dir "/" file) | |
529 | (string-append out "/bin/" file))) | |
530 | '("caff" "caff" "caff" "gpgdir" "gpg-key2ps" | |
531 | "gpglist" "gpg-mailkeys" "gpgparticipants") | |
532 | '("caff" "pgp-clean" "pgp-fixkey" "gpgdir" "gpg-key2ps" | |
533 | "gpglist" "gpg-mailkeys" "gpgparticipants")) | |
534 | (for-each | |
535 | (lambda (dir file) | |
536 | (copy-file (string-append dir "/" file) | |
537 | (string-append out "/share/man/man1/" file))) | |
538 | '("caff" "caff" "caff" "gpgdir" | |
539 | "gpg-key2ps" "gpglist" "gpg-mailkeys" | |
540 | "gpgparticipants" "gpgsigs" "gpgwrap/doc" | |
541 | "keyanalyze" "keyanalyze/pgpring" "keyanalyze") | |
542 | '("caff.1" "pgp-clean.1" "pgp-fixkey.1" "gpgdir.1" | |
543 | "gpg-key2ps.1" "gpglist.1" "gpg-mailkeys.1" | |
544 | "gpgparticipants.1" "gpgsigs.1" "gpgwrap.1" | |
545 | "process_keys.1" "pgpring.1" "keyanalyze.1")))) | |
546 | %standard-phases))))) | |
35b9e423 | 547 | (synopsis "Collection of scripts for simplifying gnupg key signing") |
96be765c | 548 | (description |
35b9e423 | 549 | "Signing-party is a collection for all kinds of PGP/GnuPG related things, |
96be765c AE |
550 | including tools for signing keys, keyring analysis, and party preparation. |
551 | ||
552 | * caff: CA - Fire and Forget signs and mails a key | |
c5143851 | 553 | |
96be765c AE |
554 | * pgp-clean: removes all non-self signatures from key |
555 | ||
556 | * pgp-fixkey: removes broken packets from keys | |
557 | ||
558 | * gpg-mailkeys: simply mail out a signed key to its owner | |
559 | ||
560 | * gpg-key2ps: generate PostScript file with fingerprint paper strips | |
561 | ||
562 | * gpgdir: recursive directory encryption tool | |
563 | ||
564 | * gpglist: show who signed which of your UIDs | |
565 | ||
566 | * gpgsigs: annotates list of GnuPG keys with already done signatures | |
567 | ||
568 | * gpgparticipants: create list of party participants for the organiser | |
569 | ||
570 | * gpgwrap: a passphrase wrapper | |
571 | ||
572 | * keyanalyze: minimum signing distance (MSD) analysis on keyrings | |
573 | ||
574 | * keylookup: ncurses wrapper around gpg --search | |
575 | ||
576 | * sig2dot: converts a list of GnuPG signatures to a .dot file | |
577 | ||
578 | * springgraph: creates a graph from a .dot file") | |
579 | ;; gpl2+ for almost all programs, except for keyanalyze: gpl2 | |
580 | ;; and caff and gpgsigs: bsd-3, see | |
581 | ;; http://packages.debian.org/changelogs/pool/main/s/signing-party/current/copyright | |
07157e8a | 582 | (license license:gpl2) |
72fb1b24 | 583 | (home-page "https://pgp-tools.alioth.debian.org/"))) |
40d806af | 584 | |
c607b701 | 585 | (define-public pinentry-tty |
40d806af | 586 | (package |
c607b701 | 587 | (name "pinentry-tty") |
547cb17d | 588 | (version "0.9.7") |
40d806af LC |
589 | (source (origin |
590 | (method url-fetch) | |
591 | (uri (string-append "mirror://gnupg/pinentry/pinentry-" | |
592 | version ".tar.bz2")) | |
593 | (sha256 | |
594 | (base32 | |
547cb17d | 595 | "1cp7wjqr6nx31mdclr61s2h84ijqjl0ph99kgj4vyawpjj1j1633")))) |
40d806af | 596 | (build-system gnu-build-system) |
c607b701 EF |
597 | (arguments |
598 | `(#:configure-flags '("--enable-pinentry-tty"))) | |
40d806af LC |
599 | (inputs |
600 | `(("ncurses" ,ncurses) | |
18ed97d6 | 601 | ("libassuan" ,libassuan) |
c607b701 | 602 | ("libsecret" ,libsecret "out"))) |
40d806af LC |
603 | (native-inputs |
604 | `(("pkg-config" ,pkg-config))) | |
547cb17d | 605 | (home-page "https://gnupg.org/aegypten2/") |
40d806af LC |
606 | (synopsis "GnuPG's interface to passphrase input") |
607 | (description | |
c607b701 EF |
608 | "Pinentry provides a console that allows users to enter a passphrase when |
609 | @code{gpg} or @code{gpg2} is run and needs it.") | |
07157e8a | 610 | (license license:gpl2+))) |
4380a7b4 | 611 | |
c607b701 EF |
612 | (define-public pinentry-gtk2 |
613 | (package | |
614 | (inherit pinentry-tty) | |
615 | (name "pinentry-gtk2") | |
616 | (inputs | |
617 | `(("gtk+" ,gtk+-2) | |
618 | ("glib" ,glib) | |
619 | ,@(package-inputs pinentry-tty))) | |
620 | (description | |
621 | "Pinentry provides a console and a GTK+ GUI that allows users to enter a | |
622 | passphrase when @code{gpg} or @code{gpg2} is run and needs it."))) | |
623 | ||
54df7558 EF |
624 | (define-public pinentry-qt |
625 | (package | |
626 | (inherit pinentry-tty) | |
627 | (name "pinentry-qt") | |
628 | (inputs | |
e2788cef | 629 | `(("qtbase" ,qtbase) |
54df7558 EF |
630 | ,@(package-inputs pinentry-tty))) |
631 | (description | |
632 | "Pinentry provides a console and a Qt GUI that allows users to enter a | |
633 | passphrase when @code{gpg} or @code{gpg2} is run and needs it."))) | |
634 | ||
940f8d39 EF |
635 | (define-public pinentry |
636 | (package (inherit pinentry-gtk2) | |
637 | (name "pinentry"))) | |
638 | ||
4380a7b4 EB |
639 | (define-public paperkey |
640 | (package | |
641 | (name "paperkey") | |
642 | (version "1.3") | |
643 | (source (origin | |
644 | (method url-fetch) | |
645 | (uri (string-append "http://www.jabberwocky.com/" | |
646 | "software/paperkey/paperkey-" | |
647 | version ".tar.gz")) | |
648 | (sha256 | |
649 | (base32 | |
650 | "1yybj8bj68v4lxwpn596b6ismh2fyixw5vlqqg26byrn4d9dfmsv")))) | |
651 | (build-system gnu-build-system) | |
652 | (arguments | |
653 | `(#:phases | |
d4bf49b1 EB |
654 | (alist-cons-before |
655 | 'check 'patch-check-scripts | |
656 | (lambda _ | |
657 | (substitute* '("checks/roundtrip.sh" | |
658 | "checks/roundtrip-raw.sh") | |
659 | (("/bin/echo") "echo"))) | |
4380a7b4 EB |
660 | %standard-phases))) |
661 | (home-page "http://www.jabberwocky.com/software/paperkey/") | |
662 | (synopsis "Backup OpenPGP keys to paper") | |
663 | (description | |
664 | "Paperkey extracts the secret bytes from an OpenPGP (GnuPG, PGP, etc) key | |
665 | for printing with paper and ink, which have amazingly long retention | |
666 | qualities. To reconstruct a secret key, you re-enter those | |
667 | bytes (whether by hand, OCR, QR code, or the like) and paperkey can use | |
668 | them to transform your existing public key into a secret key.") | |
07157e8a | 669 | (license license:gpl2+))) |