[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
106/379: gnu: python-cryptography-rust: Enable tests.
From: |
guix-commits |
Subject: |
106/379: gnu: python-cryptography-rust: Enable tests. |
Date: |
Thu, 29 Jun 2023 12:32:58 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 3a08b776c0c4b14b3ac8f2a371ebe6708d0f8ec7
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu May 11 18:21:26 2023 +0300
gnu: python-cryptography-rust: Enable tests.
* gnu/packages/python-crypto.scm (python-cryptography-rust)
[arguments]: Don't skip the tests. Add a custom 'check phase.
---
gnu/packages/python-crypto.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index bcef7c5db6..cfd1146f06 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -557,11 +557,6 @@ ciphers, message digests and key derivation functions.")
(guix build utils)
(srfi srfi-1)
(ice-9 match))
- ;; XXX: Building the test objects appear to fail due to a missing link
- ;; directive to Python's shared library (e.g.: "ld:
- ;; cryptography_rust.c950d742-cgu.11:(.text._ZN3...+0x57): undefined
- ;; reference to `PyLong_FromLong'").
- #:tests? #f
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'chdir
@@ -579,6 +574,11 @@ 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"
- 81/379: gnu: Add rust-flagset-0.4., (continued)
- 81/379: gnu: Add rust-flagset-0.4., guix-commits, 2023/06/29
- 84/379: gnu: Add rust-ed25519-compact-2., guix-commits, 2023/06/29
- 83/379: gnu: Add rust-elliptic-curve-0.13., guix-commits, 2023/06/29
- 86/379: gnu: Add rust-der-derive-0.6., guix-commits, 2023/06/29
- 91/379: gnu: Add rust-cbc-0.1., guix-commits, 2023/06/29
- 89/379: gnu: Add rust-crossterm-0.23., guix-commits, 2023/06/29
- 95/379: gnu: rust-libc-0.2: Update to 0.2.144., guix-commits, 2023/06/29
- 96/379: gnu: rust-libc-print-0.1: Update to 0.1.21., guix-commits, 2023/06/29
- 98/379: gnu: rust-sha2-0.10: Update to 0.10.6., guix-commits, 2023/06/29
- 103/379: gnu: rust-ouroboros-0.15: Update to 0.15.6., guix-commits, 2023/06/29
- 106/379: gnu: python-cryptography-rust: Enable tests.,
guix-commits <=
- 113/379: gnu: rust-rustix-0.36: Update to 0.36.13., guix-commits, 2023/06/29
- 112/379: gnu: rust-parking-lot-core-0.9: Update to 0.9.7., guix-commits, 2023/06/29
- 107/379: gnu: rust-async-trait-0.1: Update to 0.1.64., guix-commits, 2023/06/29
- 117/379: gnu: rust-os-pipe-1: Update to 1.1.4., guix-commits, 2023/06/29
- 105/379: gnu: python-cryptography: Update to 40.0.2., guix-commits, 2023/06/29
- 118/379: gnu: rust-synchronoise-1: Update to 1.0.1., guix-commits, 2023/06/29
- 139/379: gnu: rust-dtparse-1: Update to 1.3.0., guix-commits, 2023/06/29
- 124/379: gnu: rust-arc-swap-0.4: Update to 0.4.8., guix-commits, 2023/06/29
- 127/379: gnu: rust-ahash-0.4: Update to 0.4.7., guix-commits, 2023/06/29
- 126/379: gnu: rust-tokio-timer-0.2: Update to 0.2.13., guix-commits, 2023/06/29