gnu: python-libnacl: Update to 1.7.2.
* gnu/packages/python-crypto.scm (python-libnacl): Update to 1.7.2. [arguments]: Fix phase locating libsodium.so.master
parent
28f15b985f
commit
2bb3cedac7
|
@ -1212,14 +1212,14 @@ none of them have everything that I'd like, so here's one more. It uses
|
||||||
(define-public python-libnacl
|
(define-public python-libnacl
|
||||||
(package
|
(package
|
||||||
(name "python-libnacl")
|
(name "python-libnacl")
|
||||||
(version "1.6.1")
|
(version "1.7.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "libnacl" version))
|
(uri (pypi-uri "libnacl" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0nv7n8nfswkhl614x5mllrkvaslraa0053q11iylb337cy43vb4v"))))
|
"0srx7i264v4dq9and8y6gpzzhrg8jpxs5iy9ggw4plimfj0rjfdm"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -1227,11 +1227,10 @@ none of them have everything that I'd like, so here's one more. It uses
|
||||||
(add-after 'unpack 'locate-libsodium
|
(add-after 'unpack 'locate-libsodium
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "libnacl/__init__.py"
|
(substitute* "libnacl/__init__.py"
|
||||||
(("(return ctypes.cdll.LoadLibrary\\(')libsodium.so('\\))"
|
(("/usr/local/lib/libsodium.so")
|
||||||
_ pre post)
|
(string-append (assoc-ref inputs "libsodium")
|
||||||
(let ((libsodium (string-append (assoc-ref inputs "libsodium")
|
"/lib/libsodium.so")))
|
||||||
"/lib/libsodium.so")))
|
#t)))))
|
||||||
(string-append pre libsodium post)))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pyhamcrest" ,python-pyhamcrest)))
|
`(("python-pyhamcrest" ,python-pyhamcrest)))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
Reference in New Issue