summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
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/python-crypto.scm
parent90322126825a0c358262e227b19af659e824abea (diff)
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/python-crypto.scm')
-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 1ff742717cd..e5ca69429d6 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
1149(define-public python-libnacl 1149(define-public python-libnacl
1150 (package 1150 (package
1151 (name "python-libnacl") 1151 (name "python-libnacl")
1152 (version "1.7.2") 1152 (version "2.1.0")
1153 (source 1153 (source
1154 (origin 1154 (origin
1155 (method url-fetch) 1155 (method url-fetch)
1156 (uri (pypi-uri "libnacl" version)) 1156 (uri (pypi-uri "libnacl" version))
1157 (sha256 1157 (sha256
1158 (base32 1158 (base32
1159 "0srx7i264v4dq9and8y6gpzzhrg8jpxs5iy9ggw4plimfj0rjfdm")))) 1159 "0q18j8kfibhi5qckakhf0b0psf8nkll91nfp3yqxkri9vykqshgk"))))
1160 (build-system python-build-system) 1160 (build-system pyproject-build-system)
1161 (arguments 1161 (arguments
1162 `(#:phases 1162 `(#:phases
1163 (modify-phases %standard-phases 1163 (modify-phases %standard-phases
1164 (add-after 'unpack 'locate-libsodium 1164 (add-after 'unpack 'locate-libsodium
1165 (lambda* (#:key inputs #:allow-other-keys) 1165 (lambda* (#:key inputs #:allow-other-keys)
1166 (substitute* "libnacl/__init__.py" 1166 (substitute* "libnacl/__init__.py"
1167 (("/usr/local/lib/libsodium.so") 1167 (("ctypes\\.util\\.find_library\\('sodium'\\)")
1168 (search-input-file inputs "/lib/libsodium.so")))))))) 1168 (string-append "'"
1169 (search-input-file inputs "/lib/libsodium.so")
1170 "'")))))
1171 (replace 'check
1172 (lambda* (#:key tests? #:allow-other-keys)
1173 (when tests?
1174 (invoke "python" "-m" "unittest" "discover"
1175 "--start-directory" "tests" "-v")))))))
1169 (native-inputs 1176 (native-inputs
1170 (list python-pyhamcrest)) 1177 (list python-poetry-core))
1171 (inputs 1178 (inputs
1172 (list libsodium)) 1179 (list libsodium))
1173 (home-page "https://libnacl.readthedocs.org/") 1180 (home-page "https://libnacl.readthedocs.org/")