From 8438d18886da243472017fbc0d122022e595483d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 5 Nov 2023 15:53:19 +0200 Subject: [PATCH] gnu: rust-diesel-derives-1: Skip tests. * gnu/packages/crates-io.scm (rust-diesel-derives-1)[arguments]: Skip the test suite. Add cargo-test-flags. [native-inputs]: Add sqlite. Change-Id: Ia6fa3951643ba6215e3ea097091968c6e248f134 --- gnu/packages/crates-io.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 98e16fa845..d481425b7a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -21917,7 +21917,13 @@ Builder for PostgreSQL, SQLite, and MySQL.") "1lsq133fwk0zj8xvxhdxqgg0xs31zf3abnwdyshaf0ldca7hkxa5")))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs + `(#:tests? #f ; cannot find type `SqliteConnection` in this scope + #:cargo-test-flags + '("--release" + "--features" "sqlite" + "--" + "--skip=expression::count::count") + #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1)) @@ -21925,6 +21931,7 @@ Builder for PostgreSQL, SQLite, and MySQL.") (("rust-cfg-if" ,rust-cfg-if-0.1) ("rust-diesel" ,rust-diesel-1) ("rust-dotenv" ,rust-dotenv-0.10)))) + (native-inputs (list sqlite)) (home-page "https://diesel.rs") (synopsis "Crate internal to Diesel") (description "You should not use this crate directly, it is internal to