summary refs log tree commit diff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-11-05 15:51:31 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:32 +0200
commitc3efbeaca07841a17b7d313147812a9509fea2af (patch)
treeb5209cf8df4d2889f3c6d4afdca769b9a8e0aef1 /gnu/packages/crates-io.scm
parent46c2a4bced274ca8729db280e1dd3b3a3cbd7e68 (diff)
downloadguix-c3efbeaca07841a17b7d313147812a9509fea2af.tar.gz
gnu: rust-diesel-1: Honor #:tests flag.
* gnu/packages/crates-io.scm (rust-diesel-1)[arguments]: Add
cargo-test-flags.  Remove custom 'check phase.

Change-Id: I2cbdf533889857402ce17b4abbded827ac1cfe3c
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm18
1 files changed, 8 insertions, 10 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 055f4e7586..98e16fa845 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -21864,10 +21864,13 @@ example.")
         (base32
          "0hpmwrc0zx3zvpgwp9zrm6wj8d8i8q8990grlrnfzlivbi6zqyq4"))))
     (build-system cargo-build-system)
-    (native-inputs
-     (list sqlite))
     (arguments
-     `(#:cargo-inputs
+     `(#:cargo-test-flags
+       '("--release"
+         "--features" "sqlite"
+         "--"
+         "--skip=expression::count::count")
+       #:cargo-inputs
        (("rust-bigdecimal" ,rust-bigdecimal-0.1)
         ("rust-bitflags" ,rust-bitflags-1)
         ("rust-byteorder" ,rust-byteorder-1)
@@ -21892,13 +21895,8 @@ example.")
        (("rust-cfg-if" ,rust-cfg-if-0.1)
         ("rust-dotenv" ,rust-dotenv-0.10)
         ("rust-quickcheck" ,rust-quickcheck-0.4)
-        ("rust-tempdir" ,rust-tempdir-0.3))
-       #:phases
-       (modify-phases %standard-phases
-         (replace 'check
-           (lambda _
-             (invoke "cargo" "test" "--features" "sqlite" "--"
-                     "--skip=expression::count::count"))))))
+        ("rust-tempdir" ,rust-tempdir-0.3))))
+    (native-inputs (list sqlite))
     (home-page "https://diesel.rs")
     (synopsis "Safe, extensible ORM and Query Builder")
     (description "This package provides a safe, extensible ORM and Query