guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

146/424: gnu: Add rust-rstest-0.21.


From: guix-commits
Subject: 146/424: gnu: Add rust-rstest-0.21.
Date: Sun, 10 Nov 2024 05:41:46 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit e421c40cc07e7c0f398a40d98b5115dd20ae4292
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Sep 22 12:10:30 2024 +0300

    gnu: Add rust-rstest-0.21.
    
    * gnu/packages/crates-io.scm (rust-rstest-0.21): New variable.
    (rust-rstest-0.18): Inherit from rust-rstest-0.21.
    
    Change-Id: I2a870b45aebce58d99da717390a039be89782695
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index fe0fcafb6a..f4c2ef4a94 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -64408,8 +64408,42 @@ contains the API endpoint response objects.")
                                    ("rust-rand-hc" ,rust-rand-hc-0.2)
                                    ("rust-serde-json" ,rust-serde-json-1))))))
 
+(define-public rust-rstest-0.21
+  (package
+    (name "rust-rstest")
+    (version "0.21.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rstest" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "10inb7hv1p42i981bf6705dakbgfbdgl2qaim4sf9mk9f2k5bzcs"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f  ; use of undeclared crate or module `rstest_test`
+       #:cargo-inputs (("rust-futures" ,rust-futures-0.3)
+                       ("rust-futures-timer" ,rust-futures-timer-3)
+                       ("rust-rstest-macros" ,rust-rstest-macros-0.21)
+                       ("rust-rustc-version" ,rust-rustc-version-0.4))
+       #:cargo-development-inputs (("rust-actix-rt" ,rust-actix-rt-2)
+                                   ("rust-async-std" ,rust-async-std-1)
+                                   ("rust-lazy-static" ,rust-lazy-static-1)
+                                   ("rust-pretty-assertions" 
,rust-pretty-assertions-1)
+                                   ("rust-rstest" ,rust-rstest-0.20)
+                                   ("rust-temp-testdir" ,rust-temp-testdir-0.2)
+                                   ("rust-tokio" ,rust-tokio-1)
+                                   ("rust-unindent" ,rust-unindent-0.2))))
+    (home-page "https://github.com/la10736/rstest";)
+    (synopsis "Rust fixture based test framework")
+    (description
+     "This package provides a Rust fixture based test framework.  It uses a
+procedural macro to implement fixtures and table based tests.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-rstest-0.18
   (package
+    (inherit rust-rstest-0.21)
     (name "rust-rstest")
     (version "0.18.2")
     (source
@@ -64419,7 +64453,6 @@ contains the API endpoint response objects.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1681ncnlzhc8894idm3pqf40nndn4k4kcp0kpv29n68a7hpspvlp"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; no method named `set_default_timeout`
        #:cargo-inputs (("rust-futures" ,rust-futures-0.3)
@@ -64435,13 +64468,7 @@ contains the API endpoint response objects.")
                                    ("rust-rstest-test" ,rust-rstest-test-0.11)
                                    ("rust-temp-testdir" ,rust-temp-testdir-0.2)
                                    ("rust-tokio" ,rust-tokio-1)
-                                   ("rust-unindent" ,rust-unindent-0.2))))
-    (home-page "https://github.com/la10736/rstest";)
-    (synopsis "Rust fixture based test framework")
-    (description
-     "@code{rstest} uses procedural macros to help you write fixtures and
-table-based tests.")
-    (license (list license:expat license:asl2.0))))
+                                   ("rust-unindent" ,rust-unindent-0.2))))))
 
 (define-public rust-rstest-0.17
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]