From 0255e907b9d5d7b2300071c85c233392f23147a4 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Thu, 8 Dec 2022 00:13:30 +0100 Subject: [PATCH 24/31] gnu: Add rust-ntest-timeout-0.7. * gnu/packages/crates.io (rust-ntest-timeout-0.7): New variable. (rust-ntest-timout-0.3): Inherit from above. diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 208a4eb1a4..204d30e79f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -36343,8 +36343,34 @@ (define-public rust-ntest-test-cases-0.3 (base32 "0b67m368599b2zgwx19psqz6n3m9m5532h1257x6vz1pym3gd2na")))))) +(define-public rust-ntest-timeout-0.7 + (package + (name "rust-ntest-timeout") + (version "0.7.5") + (source (origin + (method url-fetch) + (uri (crate-uri "ntest_timeout" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "08v3r6hggh43qabl887pkz88k6lg6hrc62mppxyabb0pw44v03di")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-ntest-proc-macro-helper" ,rust-ntest-proc-macro-helper-0.7) + ("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.7) (name "rust-ntest-timeout") (version "0.3.3") (source @@ -36355,18 +36381,12 @@ (define-public rust-ntest-timeout-0.3 (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 -- 2.38.1