summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-26 00:45:30 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-03 08:01:06 +0100
commit4957d7866c1da16d650b057181574bcfaa904ee0 (patch)
treed014e11acf6972ae8225ba4275c5b1851581f799 /gnu/packages/python-crypto.scm
parentaa6126d588cd11303982485199a01976a8c24edf (diff)
gnu: python-ed25519: Switch to pyproject.
* gnu/packages/python-crypto.scm (python-ed25519): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments] <phases>: Use custom 'check. [native-inputs]: Add python-setuptools-next. [description]: Improve it. Change-Id: If9964e5907a8b06041083d8512458363306db9a0 Modified-by: Sharlatan Hellseher <sharlatanus@gmail.com> Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm28
1 files changed, 20 insertions, 8 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 24b262d5ee5..4ba07893197 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -642,16 +642,28 @@ OpenSSL library.")
(name "python-ed25519")
(version "1.4")
(source
- (origin
- (method url-fetch)
- (uri (pypi-uri "ed25519" version))
- (sha256
- (base32
- "0ahx1nkxa0xis3cw0h5c4fpgv8mq4znkq7kajly33lc3317bk499"))))
- (build-system python-build-system)
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/warner/python-ed25519")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1ksl73nc47ic31dknvlmm72cpxfxvia0j5f6asw4gzppwp2v1yrs"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; XXX: Use custom test back-end on python-team branch.
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests? (invoke "python" "test_ed25519_kat.py")))))))
+ (native-inputs (list python-setuptools-next))
(home-page "https://github.com/warner/python-ed25519")
(synopsis "Ed25519 public-key signatures")
- (description "Ed25519 public-key signatures")
+ (description
+ "This package provides Ed25519 public-key signatures in Python.")
(license license:expat)))
(define-public python-axolotl-curve25519