diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-02-05 11:06:54 -0800 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-02-06 11:30:35 -0800 |
commit | a05d1d82c02a997038c43b4a0e97a8e3cc8cdb8b (patch) | |
tree | 192ae7030d551548b200adfd5d974576fd2e0b56 /gnu/packages/gnupg.scm | |
parent | 08cb746f08c679a95047f1ee0d1fb70915b10f96 (diff) |
gnu: Add python-pygpgme
* gnu/packages/gnupg.scm (python-pygpgme, python2-pygpgme): New variables.
* gnu/packages/patches/pygpgme-disable-problematic-tests.patch: New file.
* gnu-system.am (dist_patch_DATA): Add it.
Diffstat (limited to 'gnu/packages/gnupg.scm')
-rw-r--r-- | gnu/packages/gnupg.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm index 501cf55230..d4de09f51e 100644 --- a/gnu/packages/gnupg.scm +++ b/gnu/packages/gnupg.scm @@ -5,6 +5,7 @@ ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> ;;; Copyright © 2015, 2016 Efraim Flashner <efraim@flashner.co.il> +;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ (define-module (gnu packages gnupg) #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages) #:use-module (gnu packages adns) #:use-module (gnu packages curl) #:use-module (gnu packages openldap) @@ -332,6 +334,46 @@ instead. This way bug fixes or improvements can be done at a central place and every application benefits from this.") (license license:lgpl2.1+))) +(define-public python-pygpgme + (package + (name "python-pygpgme") + (version "0.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pygpgme" version)) + (sha256 + (base32 + "1q82p3gs6lwq8j8dxk4pvrwk3jpww1zqcjrzznl9clh10z28gn2z")) + ;; Unfortunately, we have to disable some tests due to some gpg-agent + ;; goofiness... see: + ;; https://bugs.launchpad.net/pygpgme/+bug/999949 + (patches (list (search-patch "pygpgme-disable-problematic-tests.patch"))))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'build 'make-build + (lambda _ + (zero? (system* "make" "build")))) + (replace 'check + (lambda _ + (zero? (system* "make" "check"))))))) + (build-system python-build-system) + (inputs + `(;; setuptools required for python-2 variant + ("python-setuptools" ,python-setuptools) + ("gnupg" ,gnupg-2.0) + ("gpgme" ,gpgme))) + (home-page "https://launchpad.net/pygpgme") + (synopsis "Python module for working with OpenPGP messages") + (description + "PyGPGME is a Python module that lets you sign, verify, encrypt and +decrypt messages using the OpenPGP format by making use of GPGME.") + (license license:lgpl2.1+))) + +(define-public python2-pygpgme + (package-with-python2 python-pygpgme)) + (define-public python-gnupg (package (name "python-gnupg") |