[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
106/371: gnu: python-cryptography-rust: Enable tests.
From: |
guix-commits |
Subject: |
106/371: gnu: python-cryptography-rust: Enable tests. |
Date: |
Thu, 25 May 2023 10:47:41 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 3ac9a00d333dde3fdb9e47686781a37679834190
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 0f2ebac295..beabba69fb 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -556,11 +556,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
@@ -578,6 +573,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"
- 148/371: gnu: rust-nix-0.22: Update to 0.22.3., (continued)
- 148/371: gnu: rust-nix-0.22: Update to 0.22.3., guix-commits, 2023/05/25
- 149/371: gnu: rust-net2-0.2: Update to 0.2.38., guix-commits, 2023/05/25
- 153/371: gnu: Remove rust-cbindgen-0.17., guix-commits, 2023/05/25
- 72/371: gnu: Add rust-phf-0.9., guix-commits, 2023/05/25
- 70/371: gnu: Add rust-phf-generator-0.9., guix-commits, 2023/05/25
- 84/371: gnu: Add rust-ed25519-compact-2., guix-commits, 2023/05/25
- 90/371: gnu: Add rust-coolor-0.5., guix-commits, 2023/05/25
- 92/371: gnu: Add rust-base16ct-0.2., guix-commits, 2023/05/25
- 93/371: gnu: Add rust-addchain-0.2., guix-commits, 2023/05/25
- 96/371: gnu: rust-libc-print-0.1: Update to 0.1.21., guix-commits, 2023/05/25
- 106/371: gnu: python-cryptography-rust: Enable tests.,
guix-commits <=
- 107/371: gnu: rust-async-trait-0.1: Update to 0.1.64., guix-commits, 2023/05/25
- 124/371: gnu: rust-arc-swap-0.4: Update to 0.4.8., guix-commits, 2023/05/25
- 128/371: gnu: rust-arrow-5: Update to 5.5.0., guix-commits, 2023/05/25
- 129/371: gnu: rust-brotli-3: Update to 3.3.4., guix-commits, 2023/05/25
- 131/371: gnu: rust-packed-simd-0.3: Update to 0.3.8., guix-commits, 2023/05/25
- 137/371: gnu: rust-r2d2-0.8: Update to 0.8.10., guix-commits, 2023/05/25
- 142/371: gnu: rust-ndarray-0.15: Update to 0.15.6., guix-commits, 2023/05/25
- 147/371: gnu: Add rust-assert-impl-0.1., guix-commits, 2023/05/25
- 150/371: gnu: Remove rust-cbindgen-0.12., guix-commits, 2023/05/25
- 156/371: gnu: rust-nettle-sys-2: Update to 2.2.0., guix-commits, 2023/05/25