aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2023-09-22 00:39:43 +0800
committerMarius Bakke <marius@gnu.org>2023-09-22 01:29:21 +0800
commitc2e078c602989134ab973183d558edd0202e946d (patch)
tree544ff7b8af9c1eec9e610b2eba080cdb58586b5f /gnu/packages
parent90322126825a0c358262e227b19af659e824abea (diff)
downloadguix-c2e078c602989134ab973183d558edd0202e946d.tar.gz
guix-c2e078c602989134ab973183d558edd0202e946d.zip
gnu: python-libnacl: Update to 2.1.0.
* gnu/packages/python-crypto.scm (python-libnacl): Update to 2.1.0. [build-system]: Switch to PYPROJECT-BUILD-SYSTEM. [arguments]: Adjust hack for locating libsodium. Add custom check phase. [native-inputs]: Remove PYTHON-PYHAMCREST. Add PYTHON-POETRY-CORE.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-crypto.scm19
1 files changed, 13 insertions, 6 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 1ff742717c..e5ca69429d 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -1149,25 +1149,32 @@ none of them have everything that I'd like, so here's one more. It uses
(define-public python-libnacl
(package
(name "python-libnacl")
- (version "1.7.2")
+ (version "2.1.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "libnacl" version))
(sha256
(base32
- "0srx7i264v4dq9and8y6gpzzhrg8jpxs5iy9ggw4plimfj0rjfdm"))))
- (build-system python-build-system)
+ "0q18j8kfibhi5qckakhf0b0psf8nkll91nfp3yqxkri9vykqshgk"))))
+ (build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'locate-libsodium
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "libnacl/__init__.py"
- (("/usr/local/lib/libsodium.so")
- (search-input-file inputs "/lib/libsodium.so"))))))))
+ (("ctypes\\.util\\.find_library\\('sodium'\\)")
+ (string-append "'"
+ (search-input-file inputs "/lib/libsodium.so")
+ "'")))))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "unittest" "discover"
+ "--start-directory" "tests" "-v")))))))
(native-inputs
- (list python-pyhamcrest))
+ (list python-poetry-core))
(inputs
(list libsodium))
(home-page "https://libnacl.readthedocs.org/")
b6e0f381ced2de27762fa9d1bb65'>import/github: Test it....Maxime Devos 2022-01-15gnu: renpy: Move renpy command to aux-files....Liliana Marie Prikler 2022-01-06guix hash: Extract file hashing procedures....Sarah Morgensen 2022-01-01Add (guix cpu)....Ludovic Courtès 2021-12-28build: Fix typo in Makefile....Leo Famulari