[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#31241] [PATCH 11/13] gnu: Add python-libnacl.
From: |
Nicolas Goaziou |
Subject: |
[bug#31241] [PATCH 11/13] gnu: Add python-libnacl. |
Date: |
Mon, 23 Apr 2018 01:04:18 +0200 |
* gnu/packages/python-crypto.scm (python-libnacl): New variable.
---
gnu/packages/python-crypto.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index e8a209735..41b6d5869 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -861,3 +861,37 @@ through the Engine interface.")
(synopsis "Scrypt for Python")
(description "Scrypt for Python")
(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)))))))))
+ (propagated-inputs
+ `(("libsodium" ,libsodium)
+ ("python-pyhamcrest" ,python-pyhamcrest)))
+ (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)))
--
2.17.0
- [bug#31241] [PATCH 03/13] gnu: Add python-pycares., (continued)
- [bug#31241] [PATCH 03/13] gnu: Add python-pycares., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 04/13] gnu: Add python-async-timeout., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 02/13] gnu: Add python-async-generator., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 09/13] gnu: Add python-aiodns., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 07/13] gnu: Add python-pylibscrypt., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 08/13] gnu: Add python-multidict., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 05/13] gnu: Add python-idna-ssl., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 06/13] gnu: Add python-base58., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 10/13] gnu: Add python-yarl., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 13/13] gnu: Add python-duniterpy., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 11/13] gnu: Add python-libnacl.,
Nicolas Goaziou <=
- [bug#31241] [PATCH 12/13] gnu: Add python-aiohttp., Nicolas Goaziou, 2018/04/22
- [bug#31241] [PATCH 00/13] Add Duniter's bindings for Python, Ludovic Courtès, 2018/04/26