[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/55: gnu: python-libnacl: Update to 2.1.0.
From: |
guix-commits |
Subject: |
52/55: gnu: python-libnacl: Update to 2.1.0. |
Date: |
Thu, 21 Sep 2023 13:31:40 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit c2e078c602989134ab973183d558edd0202e946d
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Sep 22 00:39:43 2023 +0800
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.
---
gnu/packages/python-crypto.scm | 19 +++++++++++++------
1 file 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/")
- 15/55: gnu: uwufetch: Avoid top-level package references., (continued)
- 15/55: gnu: uwufetch: Avoid top-level package references., guix-commits, 2023/09/21
- 17/55: gnu: Add python-dj-email-url., guix-commits, 2023/09/21
- 21/55: gnu: Add python-django-configurations., guix-commits, 2023/09/21
- 23/55: gnu: python-django-picklefield: Update to 3.1.0., guix-commits, 2023/09/21
- 27/55: gnu: graphite-web: Update to 1.1.10., guix-commits, 2023/09/21
- 28/55: gnu: Remove python-django@2.2., guix-commits, 2023/09/21
- 29/55: gnu: python-flex: Update to 6.14.1., guix-commits, 2023/09/21
- 34/55: gnu: python-django@3.2: Update to 3.2.21., guix-commits, 2023/09/21
- 35/55: gnu: python-asgiref: Update to 3.7.2., guix-commits, 2023/09/21
- 40/55: gnu: python-distlib: Don't reference the implicit bash input., guix-commits, 2023/09/21
- 52/55: gnu: python-libnacl: Update to 2.1.0.,
guix-commits <=
- 44/55: gnu: python-uvicorn: Update to 0.23.2., guix-commits, 2023/09/21
- 49/55: gnu: python-incremental: Update to 22.10.0., guix-commits, 2023/09/21
- 46/55: gnu: python-psycopg: Update to 3.1.10., guix-commits, 2023/09/21
- 48/55: gnu: python-txaio: Update to 23.1.1., guix-commits, 2023/09/21
- 11/55: gnu: Add python-sphinx-basic-ng., guix-commits, 2023/09/21
- 16/55: services: nftables: Add 'configuration' action., guix-commits, 2023/09/21
- 22/55: gnu: Add python-django-ninja., guix-commits, 2023/09/21
- 55/55: gnu: python-bwapy: Fix typo., guix-commits, 2023/09/21
- 02/55: gnu: Add python-dirty-equals., guix-commits, 2023/09/21
- 07/55: gnu: Add python-html5tagger., guix-commits, 2023/09/21