aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-02 10:42:30 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-18 11:36:02 +0300
commit8f60a52bb091b07e8836c33ee0dbad1f13db046b (patch)
tree02ab1955e7359cd4249329a1b80f77a5e1870df1 /gnu/packages
parent424e0ea4e5f093f20af322e8e54a86f984881591 (diff)
downloadguix-8f60a52bb091b07e8836c33ee0dbad1f13db046b.tar.gz
guix-8f60a52bb091b07e8836c33ee0dbad1f13db046b.zip
gnu: python-cryptography-rust: Use cargo-test-flags.
* gnu/packages/python-crypto.scm (python-cryptography-rust) [arguments]: Replace custom 'check phase with cargo-test-flags.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python-crypto.scm7
1 files changed, 2 insertions, 5 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index e28d1de837..466cfa35db 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -569,6 +569,8 @@ ciphers, message digests and key derivation functions.")
(srfi srfi-1)
(ice-9 match))
#:install-source? #f
+ ;; As seen in noxfile.py
+ #:cargo-test-flags ''("--release" "--no-default-features")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'chdir
@@ -586,11 +588,6 @@ ciphers, message digests and key derivation functions.")
(apply (assoc-ref %standard-phases 'configure)
(append args
(list #:inputs (alist-delete "source" inputs))))))
- (replace 'check
- (lambda* (#:key tests? #:allow-other-keys)
- (when tests?
- ;; As seen in tox.ini
- (invoke "cargo" "test" "--no-default-features"))))
(add-after 'install 'install-shared-library
(lambda _
(install-file "target/release/libcryptography_rust.so"