mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-cryptography-rust: Use cargo-test-flags.
* gnu/packages/python-crypto.scm (python-cryptography-rust) [arguments]: Replace custom 'check phase with cargo-test-flags.
This commit is contained in:
parent
424e0ea4e5
commit
8f60a52bb0
1 changed files with 2 additions and 5 deletions
|
@ -569,6 +569,8 @@ ciphers, message digests and key derivation functions.")
|
|||
(srfi srfi-1)
|
||||
(ice-9 match))
|
||||
#:install-source? #f
|
||||
;; As seen in noxfile.py
|
||||
#:cargo-test-flags ''("--release" "--no-default-features")
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chdir
|
||||
|
@ -586,11 +588,6 @@ 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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue