guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

118/194: gnu: python-cryptography-rust: Use cargo-test-flags.


From: guix-commits
Subject: 118/194: gnu: python-cryptography-rust: Use cargo-test-flags.
Date: Tue, 3 Oct 2023 14:57:42 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 70b1c2d4f28651a4e210d9d231df66d1e410a129
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Oct 2 10:42:30 2023 +0300

    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.
---
 gnu/packages/python-crypto.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index 23f7f04ca4..8e6412874f 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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]