summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-26 00:30:38 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-03 08:01:05 +0100
commit2b2daab06865789d2e2b93c33ddab11b004c89ba (patch)
tree1758b32c2c1f20acf7d898323cab70ef0c473442 /gnu/packages/python-crypto.scm
parent4bbb6c0c03a79f27e21205c59be77322690face9 (diff)
gnu: python-axolotl: Switch to pyproject.
* gnu/packages/python-crypto.scm (python-axolotl): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:phases>: Replace phase 'remove-tests by phase 'cleanup-install. [native-inputs]: Add python-pytest, python-setuptools, python-wheel. [description]: Run guix style. Change-Id: I70bb567982555cf96b6bc84e2900b33910b05414 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm41
1 files changed, 23 insertions, 18 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 846312f4233..9640d70f7a0 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -690,28 +690,33 @@ python-axolotl.")
(version "0.2.3")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "python-axolotl" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tgalal/python-axolotl")
+ (commit version)))
+ (file-name (git-file-name name version))
(sha256
- (base32
- "1bwdp24fmriffwx91aigs9k162albb51iskp23nc939z893q23py"))))
- (build-system python-build-system)
+ (base32 "0bwzsyb3z54259kh667m714n28r6jp8almb5mrx48ar0pgashsrl"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- ;; Don't install tests
- (add-before 'install 'remove-tests
- (lambda _
- (for-each delete-file-recursively
- '("axolotl/tests" "build/lib/axolotl/tests"))
- #t)))))
- (propagated-inputs
- (list python-axolotl-curve25519 python-cryptography python-protobuf))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; Don't install tests
+ (add-after 'install 'cleanup-install
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (site-packages inputs outputs)
+ "/axolotl/tests")))))))
+ (native-inputs (list python-pytest python-setuptools python-wheel))
+ (propagated-inputs (list python-axolotl-curve25519 python-cryptography
+ python-protobuf))
(home-page "https://github.com/tgalal/python-axolotl")
(synopsis "Python port of libaxolotl-android")
- (description "This is a python port of libaxolotl-android. This
-is a ratcheting forward secrecy protocol that works in synchronous and
-asynchronous messaging environments.")
+ (description
+ "This is a python port of libaxolotl-android. This is a ratcheting
+forward secrecy protocol that works in synchronous and asynchronous messaging
+environments.")
(license license:gpl3)))
(define-public python-omemo-dr