[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/11: gnu: python-pynacl: Update to 1.4.0.
From: |
guix-commits |
Subject: |
10/11: gnu: python-pynacl: Update to 1.4.0. |
Date: |
Tue, 14 Jul 2020 16:02:45 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit f5e3f02fdd668c24717b63f0289394cfd704f726
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jul 14 21:24:39 2020 +0200
gnu: python-pynacl: Update to 1.4.0.
* gnu/packages/python-crypto.scm (python-pynacl): Update to 1.4.0.
[source](snippet): Adjust to fix spurious build requirement.
[arguments]: Add #:modules. Replace check phase with custom pytest
invocation.
---
gnu/packages/python-crypto.scm | 34 ++++++++++++++++++++++++++--------
1 file changed, 26 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index da7b8ed..97f5903 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -739,26 +739,44 @@ PKCS#8, PKCS#12, PKCS#5, X.509 and TSP.")
(define-public python-pynacl
(package
(name "python-pynacl")
- (version "1.3.0")
+ (version "1.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "PyNaCl" version))
(modules '((guix build utils)))
- ;; Remove bundled libsodium.
- (snippet '(begin (delete-file-recursively "src/libsodium")
- #t))
+ (snippet
+ '(begin
+ ;; Remove spurious dependency on python-wheel, can be removed
+ ;; for 1.5.
+ (substitute* "setup.py"
+ (("\"wheel\"") ""))
+ ;; Remove bundled libsodium.
+ (delete-file-recursively "src/libsodium")
+ #t))
(sha256
(base32
- "0330wyvggm19xhmwmz9rrr97lzbv3siwfy50gmax3vvgs7nh0q8c"))))
+ "01b56hxrbif3hx8l6rwz5kljrgvlbj7shmmd2rjh0hn7974a5sal"))))
(build-system python-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
+ `(#:modules (,@%python-build-system-modules
+ (guix build utils)
+ (ice-9 ftw)
+ (srfi srfi-26))
+ #:phases
+ (modify-phases (@ (guix build python-build-system) %standard-phases)
(add-before 'build 'use-system-sodium
(lambda _
(setenv "SODIUM_INSTALL" "system")
- #t)))))
+ #t))
+ (replace 'check
+ (lambda _
+ (let ((build-directory
+ (car (scandir "build" (cut string-prefix? "lib" <>)))))
+ (setenv "PYTHONPATH"
+ (string-append "./build/" build-directory ":"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-vv")))))))
(native-inputs
`(("python-hypothesis" ,python-hypothesis)
("python-pytest" ,python-pytest)))
- branch master updated (7c86ef0 -> 0a72157), guix-commits, 2020/07/14
- 02/11: gnu: silkaj: Remove unused input., guix-commits, 2020/07/14
- 01/11: gnu: python-docker-py: Remove unused input., guix-commits, 2020/07/14
- 05/11: gnu: python-bottle: Update to 0.12.18., guix-commits, 2020/07/14
- 03/11: gnu: python-txtorcon: Remove unused input., guix-commits, 2020/07/14
- 04/11: gnu: virt-manager: Remove unused input., guix-commits, 2020/07/14
- 08/11: gnu: python-paramiko: Update to 2.7.1., guix-commits, 2020/07/14
- 10/11: gnu: python-pynacl: Update to 1.4.0.,
guix-commits <=
- 09/11: gnu: python-simplejson: Update to 3.17.0., guix-commits, 2020/07/14
- 11/11: gnu: Remove python2-pywavelets., guix-commits, 2020/07/14
- 06/11: gnu: python-pycurl: Update to 7.43.0.5., guix-commits, 2020/07/14
- 07/11: gnu: python-bitarray: Update to 1.4.0., guix-commits, 2020/07/14