summaryrefslogtreecommitdiff
path: root/gnu/packages/python-crypto.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-05-11 18:21:26 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-08-14 19:37:37 +0300
commit1f04e3d02711e07035ca8dfb6e8778d8a03abbfe (patch)
tree96eb9a70c61e73dcc09893437196f8fd987e1496 /gnu/packages/python-crypto.scm
parenta91628366aee57020bb758cdee2229e58993f4d9 (diff)
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.
Diffstat (limited to 'gnu/packages/python-crypto.scm')
-rw-r--r--gnu/packages/python-crypto.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/packages/python-crypto.scm b/gnu/packages/python-crypto.scm
index bcef7c5db62..cfd1146f066 100644
--- a/gnu/packages/python-crypto.scm
+++ b/gnu/packages/python-crypto.scm
@@ -557,11 +557,6 @@ ciphers, message digests and key derivation functions.")
557 (guix build utils) 557 (guix build utils)
558 (srfi srfi-1) 558 (srfi srfi-1)
559 (ice-9 match)) 559 (ice-9 match))
560 ;; XXX: Building the test objects appear to fail due to a missing link
561 ;; directive to Python's shared library (e.g.: "ld:
562 ;; cryptography_rust.c950d742-cgu.11:(.text._ZN3...+0x57): undefined
563 ;; reference to `PyLong_FromLong'").
564 #:tests? #f
565 #:phases 560 #:phases
566 #~(modify-phases %standard-phases 561 #~(modify-phases %standard-phases
567 (add-after 'unpack 'chdir 562 (add-after 'unpack 'chdir
@@ -579,6 +574,11 @@ ciphers, message digests and key derivation functions.")
579 (apply (assoc-ref %standard-phases 'configure) 574 (apply (assoc-ref %standard-phases 'configure)
580 (append args 575 (append args
581 (list #:inputs (alist-delete "source" inputs)))))) 576 (list #:inputs (alist-delete "source" inputs))))))
577 (replace 'check
578 (lambda* (#:key tests? #:allow-other-keys)
579 (when tests?
580 ;; As seen in tox.ini
581 (invoke "cargo" "test" "--no-default-features"))))
582 (add-after 'install 'install-shared-library 582 (add-after 'install 'install-shared-library
583 (lambda _ 583 (lambda _
584 (install-file "target/release/libcryptography_rust.so" 584 (install-file "target/release/libcryptography_rust.so"