[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: |
Mon, 10 Jul 2023 05:28:12 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit 8894a2ef357cf1039afcd00b2f5423c742a648dd
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"
- 80/379: gnu: Add rust-group-0.13., (continued)
- 80/379: gnu: Add rust-group-0.13., guix-commits, 2023/07/10
- 90/379: gnu: Add rust-coolor-0.5., guix-commits, 2023/07/10
- 94/379: gnu: rust-crates-io-0.35: Update to 0.35.1., guix-commits, 2023/07/10
- 73/379: gnu: Add rust-pem-rfc7468-0.6., guix-commits, 2023/07/10
- 101/379: gnu: rust-openssl-sys-0.9: Update to 0.9.87., guix-commits, 2023/07/10
- 100/379: gnu: rust-openssl-0.10: Update to 0.10.52., guix-commits, 2023/07/10
- 104/379: gnu: python-cryptography-vectors: Update to 40.0.2., guix-commits, 2023/07/10
- 102/379: gnu: rust-ouroboros-macro-0.15: Update to 0.15.6., guix-commits, 2023/07/10
- 108/379: gnu: rust-os-pipe-1: Update to 1.1.3., guix-commits, 2023/07/10
- 109/379: gnu: rust-rustix-0.36: Update to 0.36.9., guix-commits, 2023/07/10
- 106/379: gnu: python-cryptography-rust: Enable tests.,
guix-commits <=
- 116/379: gnu: rust-uuid-macro-internal-1: Update to 1.3.3., guix-commits, 2023/07/10
- 117/379: gnu: rust-os-pipe-1: Update to 1.1.4., guix-commits, 2023/07/10
- 129/379: gnu: rust-brotli-3: Update to 3.3.4., guix-commits, 2023/07/10
- 133/379: gnu: rust-miow-0.2: Update to 0.2.2., guix-commits, 2023/07/10
- 131/379: gnu: rust-packed-simd-0.3: Update to 0.3.8., guix-commits, 2023/07/10
- 121/379: gnu: rust-tokio-threadpool-0.1: Update to 0.1.18., guix-commits, 2023/07/10
- 143/379: gnu: rust-pear-0.1: Update to 0.1.5., guix-commits, 2023/07/10
- 146/379: gnu: rust-tokio-stream-0.1: Update to 0.1.14., guix-commits, 2023/07/10
- 148/379: gnu: rust-nix-0.22: Update to 0.22.3., guix-commits, 2023/07/10
- 161/379: gnu: rust-zstd-sys-2: Update to 2.0.8., guix-commits, 2023/07/10