[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
106/472: gnu: python-cryptography-rust: Enable tests.
From: |
guix-commits |
Subject: |
106/472: gnu: python-cryptography-rust: Enable tests. |
Date: |
Tue, 18 Jul 2023 14:08:20 -0400 (EDT) |
efraim pushed a commit to branch rust-team
in repository guix.
commit c5d1894ace5ff593afba2fe79f11345ddce3a80f
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"
- 150/472: gnu: Remove rust-cbindgen-0.12., (continued)
- 150/472: gnu: Remove rust-cbindgen-0.12., guix-commits, 2023/07/18
- 152/472: gnu: Remove rust-cbindgen-0.15., guix-commits, 2023/07/18
- 153/472: gnu: Remove rust-cbindgen-0.17., guix-commits, 2023/07/18
- 161/472: gnu: rust-zstd-sys-2: Update to 2.0.8., guix-commits, 2023/07/18
- 165/472: gnu: rust-zstd-0.9: Update to 0.9.3., guix-commits, 2023/07/18
- 166/472: gnu: rust-zstd-safe-5: Don't skip build., guix-commits, 2023/07/18
- 158/472: gnu: rust-libsqlite3-sys-0.23: Update to 0.23.2., guix-commits, 2023/07/18
- 160/472: gnu: rust-nettle-7: Update to 7.3.0., guix-commits, 2023/07/18
- 178/472: gnu: Remove rust-quasi-macros-0.32., guix-commits, 2023/07/18
- 182/472: gnu: Remove rust-aes-ctr-0.6., guix-commits, 2023/07/18
- 106/472: gnu: python-cryptography-rust: Enable tests.,
guix-commits <=
- 118/472: gnu: rust-synchronoise-1: Update to 1.0.1., guix-commits, 2023/07/18
- 126/472: gnu: rust-tokio-timer-0.2: Update to 0.2.13., guix-commits, 2023/07/18
- 134/472: gnu: rust-base-x-0.2: Update to 0.2.11., guix-commits, 2023/07/18
- 132/472: gnu: Add rust-json-0.12., guix-commits, 2023/07/18
- 138/472: gnu: rust-devise-core-0.2: Update to 0.2.1., guix-commits, 2023/07/18
- 57/472: gnu: Add rust-termimad-0.20., guix-commits, 2023/07/18
- 60/472: gnu: Add rust-serdect-0.2., guix-commits, 2023/07/18
- 61/472: gnu: Add rust-serde-json-core-0.5., guix-commits, 2023/07/18
- 68/472: gnu: Add rust-phf-shared-0.9., guix-commits, 2023/07/18
- 69/472: gnu: Add rust-phf-macros-0.9., guix-commits, 2023/07/18