[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/13: gnu: Add python-libnacl.
From: |
Nicolas Goaziou |
Subject: |
11/13: gnu: Add python-libnacl. |
Date: |
Fri, 11 May 2018 05:54:59 -0400 (EDT) |
ngz pushed a commit to branch master
in repository guix.
commit 40c6e4544833f71b914ebc27e219f67683db8550
Author: Nicolas Goaziou <address@hidden>
Date: Mon Apr 23 00:19:50 2018 +0200
gnu: Add python-libnacl.
* gnu/packages/python-crypto.scm (python-libnacl): New variable.
---
gnu/packages/python-crypto.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index b19364a..aa1c110 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -864,3 +864,38 @@ through the Engine interface.")
none of them have everything that I'd like, so here's one more. It uses
hashlib.scrypt on Python 3.6 and OpenSSL 1.1.")
(license license:isc)))
+
+(define-public python-libnacl
+ (package
+ (name "python-libnacl")
+ (version "1.6.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "libnacl" version))
+ (sha256
+ (base32
+ "0nv7n8nfswkhl614x5mllrkvaslraa0053q11iylb337cy43vb4v"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'locate-libsodium
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "libnacl/__init__.py"
+ (("(return ctypes.cdll.LoadLibrary\\(')libsodium.so('\\))"
+ _ pre post)
+ (let ((libsodium (string-append (assoc-ref inputs "libsodium")
+ "/lib/libsodium.so")))
+ (string-append pre libsodium post)))))))))
+ (native-inputs
+ `(("python-pyhamcrest" ,python-pyhamcrest)))
+ (inputs
+ `(("libsodium" ,libsodium)))
+ (home-page "https://libnacl.readthedocs.org/")
+ (synopsis "Python bindings for libsodium based on ctypes")
+ (description "@code{libnacl} is used to gain direct access to the
+functions exposed by @code{NaCl} library via @code{libsodium}. It has
+been constructed to maintain extensive documentation on how to use
address@hidden as well as being completely portable.")
+ (license license:asl2.0)))
- branch master updated (ef6a484 -> cb91f6a), Nicolas Goaziou, 2018/05/11
- 01/13: gnu: python-attrs: Update to 17.4.0., Nicolas Goaziou, 2018/05/11
- 03/13: gnu: Add python-pycares., Nicolas Goaziou, 2018/05/11
- 04/13: gnu: Add python-async-timeout., Nicolas Goaziou, 2018/05/11
- 09/13: gnu: Add python-aiodns., Nicolas Goaziou, 2018/05/11
- 07/13: gnu: Add python-pylibscrypt., Nicolas Goaziou, 2018/05/11
- 08/13: gnu: Add python-multidict., Nicolas Goaziou, 2018/05/11
- 10/13: gnu: Add python-yarl., Nicolas Goaziou, 2018/05/11
- 11/13: gnu: Add python-libnacl.,
Nicolas Goaziou <=
- 12/13: gnu: Add python-aiohttp., Nicolas Goaziou, 2018/05/11
- 13/13: gnu: Add python-duniterpy., Nicolas Goaziou, 2018/05/11
- 06/13: gnu: Add python-base58., Nicolas Goaziou, 2018/05/11
- 02/13: gnu: Add python-async-generator., Nicolas Goaziou, 2018/05/11
- 05/13: gnu: Add python-idna-ssl., Nicolas Goaziou, 2018/05/11