From 93b55dbf94d74250b4417ded5056577d72247451 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 22 Feb 2023 20:57:01 +0200 Subject: [PATCH] gnu: Add rust-ntest-timeout-0.8. * gnu/packages/crates-io.scm (rust-ntest-timeout-0.8): New variable. (rust-ntest-timeout-0.3): Inherit from rust-ntest-timeout-0.8. --- gnu/packages/crates-io.scm | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 9c1ca6ac4e..773ac3211a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -37943,8 +37943,34 @@ enhances the built-in library with some useful features.") ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1)))))) +(define-public rust-ntest-timeout-0.8 + (package + (name "rust-ntest-timeout") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "ntest_timeout" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "01vcdlz9xj471z5knk2qynm7adz3p614glf6n0pgn161qynym9mw")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-ntest-proc-macro-helper" ,rust-ntest-proc-macro-helper-0.8) + ("rust-proc-macro-crate" ,rust-proc-macro-crate-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://github.com/becheran/ntest") + (synopsis "Timeout attribute for the ntest framework") + (description "This package provides a timeout attribute for the ntest +framework.") + (license license:expat))) + (define-public rust-ntest-timeout-0.3 (package + (inherit rust-ntest-timeout-0.8) (name "rust-ntest-timeout") (version "0.3.3") (source @@ -37955,18 +37981,12 @@ enhances the built-in library with some useful features.") (sha256 (base32 "0klryn3rgjxnq3cv6j8bwcsr0b7zw3x216h63144v22aja18p0g0")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) ("rust-quote" ,rust-quote-1) ("rust-syn" ,rust-syn-1) - ("rust-timebomb" ,rust-timebomb-0.1)))) - (home-page "https://github.com/becheran/ntest") - (synopsis "Timeout attribute for the ntest framework") - (description "This package provides a timeout attribute for the ntest -framework.") - (license license:expat))) + ("rust-timebomb" ,rust-timebomb-0.1)))))) (define-public rust-num-0.4 (package