[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/12: gnu: Add python-pynacl.
From: |
Ludovic Courtès |
Subject: |
11/12: gnu: Add python-pynacl. |
Date: |
Sat, 14 Oct 2017 11:09:11 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f0f6f9f6cf81b54a3bdb2a40d67006a8df7ef00e
Author: ng0 <address@hidden>
Date: Wed Oct 11 10:28:28 2017 +0000
gnu: Add python-pynacl.
* gnu/packages/crypto.scm (python-pynacl): New variable.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/packages/crypto.scm | 39 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/crypto.scm b/gnu/packages/crypto.scm
index 0f01788..8e3956a 100644
--- a/gnu/packages/crypto.scm
+++ b/gnu/packages/crypto.scm
@@ -4,7 +4,7 @@
;;; Copyright © 2016, 2017 Leo Famulari <address@hidden>
;;; Copyright © 2016 Lukas Gradl <address@hidden>
;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
-;;; Copyright © 2016 ng0 <address@hidden>
+;;; Copyright © 2016, 2017 ng0 <address@hidden>
;;; Copyright © 2016, 2017 Eric Bavier <address@hidden>
;;;
;;; This file is part of GNU Guix.
@@ -39,6 +39,7 @@
#:use-module (gnu packages nettle)
#:use-module (gnu packages password-utils)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages python)
#:use-module (gnu packages readline)
#:use-module (gnu packages search)
#:use-module (gnu packages serialization)
@@ -594,3 +595,39 @@ or millenia for an attacker to try them all.
data on your platform, so the seed itself will be as random as possible.
@end enumerate\n")
(license license:artistic2.0)))
+
+(define-public python-pynacl
+ (package
+ (name "python-pynacl")
+ (version "1.1.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "PyNaCl" version))
+ (modules '((guix build utils)))
+ ;; Remove bundled libsodium
+ (snippet '(delete-file-recursively "src/libsodium"))
+ (sha256
+ (base32
+ "135gz0020fqx8fbr9izpwyq49aww202nkqacq0cw61xz99sjpx9j"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'use-system-sodium
+ (lambda _
+ (setenv "SODIUM_INSTALL" "system")
+ #t)))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
+ (propagated-inputs
+ `(("python-cffi" ,python-cffi)
+ ("python-six" ,python-six)
+ ("libsodium" ,libsodium)))
+ (home-page "https://github.com/pyca/pynacl/")
+ (synopsis "Python bindings to libsodium")
+ (description
+ "PyNaCl is a Python binding to libsodium, which is a fork of the
+Networking and Cryptography library. These libraries have a stated goal
+of improving usability, security and speed.")
+ (license license:asl2.0)))
- 06/12: gnu: Add emacs-julia-mode., (continued)
- 06/12: gnu: Add emacs-julia-mode., Ludovic Courtès, 2017/10/14
- 04/12: gnu: games: Add openrct2., Ludovic Courtès, 2017/10/14
- 07/12: gnu: emacs-ess: Update to 16.10., Ludovic Courtès, 2017/10/14
- 09/12: gnu: Add python-cbor., Ludovic Courtès, 2017/10/14
- 05/12: gnu: Add emacs-easy-kill., Ludovic Courtès, 2017/10/14
- 02/12: gnu: guile-sly: Remove 2.0-specific bits., Ludovic Courtès, 2017/10/14
- 08/12: gnu: neomutt: Update to 20171013., Ludovic Courtès, 2017/10/14
- 12/12: gnu: Add python-pyqrcode., Ludovic Courtès, 2017/10/14
- 03/12: gnu: guile-sdl, guile-sly: Switch to Guile 2.2., Ludovic Courtès, 2017/10/14
- 10/12: gnu: Add python-py-ubjson., Ludovic Courtès, 2017/10/14
- 11/12: gnu: Add python-pynacl.,
Ludovic Courtès <=