mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-29 07:42:23 -05:00
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.
This commit is contained in:
parent
a91628366a
commit
1f04e3d027
1 changed files with 5 additions and 5 deletions
|
@ -557,11 +557,6 @@ (define-public python-cryptography-rust
|
|||
(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 @@ (define-public python-cryptography-rust
|
|||
(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"
|
||||
|
|
Loading…
Reference in a new issue