unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Steve George <steve@futurile.net>
To: 61561@debbugs.gnu.org
Cc: Steve George <steve@futurile.net>
Subject: [bug#61561] [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5.
Date: Thu, 16 Feb 2023 23:00:59 +0000	[thread overview]
Message-ID: <20230216230103.107367-1-steve@futurile.net> (raw)
In-Reply-To: <f06ea87c-e71b-8a72-d90d-6b16578ef0ab@futurile.net>

* gnu/packages/crates-io.scm (rust-pretty-assertions-0.5): New variable.

---
Tests fail as they require Rust 1.35, added a comment.

 gnu/packages/crates-io.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e615a51b01..355c8ef761 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -42350,6 +42350,27 @@ (define-public rust-pretty-assertions-0.6
         ("rust-ansi-term" ,rust-ansi-term-0.11)
         ("rust-difference" ,rust-difference-2))))))
 
+ ; test fail because minimum rust required is 1.35
+; https://github.com/rust-pretty-assertions/rust-pretty-assertions/issues/32
+(define-public rust-pretty-assertions-0.5
+  (package
+    (inherit rust-pretty-assertions-0.6)
+    (name "rust-pretty-assertions")
+    (version "0.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "pretty-assertions" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1ins6swkpxmrh8q5h96h8nv0497d3dclsiyx2lyvqi6py0q980is"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f
+       #:skip-build? #f
+       #:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.11)
+                       ("rust-difference" ,rust-difference-2))))))
+
 (define-public rust-pretty-assertions-0.4
   (package
     (inherit rust-pretty-assertions-0.6)
-- 
2.39.1





  reply	other threads:[~2023-02-16 23:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-16 22:51 [bug#61561] Add rust-mockall and friends Steve George
2023-02-16 23:00 ` Steve George [this message]
2023-02-16 23:01   ` [bug#61561] [PATCH 2/5] gnu: add rust-downcast Steve George
2023-02-16 23:01   ` [bug#61561] [PATCH 3/5] gnu: Add rust-mockall-double Steve George
2023-02-16 23:01   ` [bug#61561] [PATCH 4/5] gnu: Add rust-mockall-derive Steve George
2023-02-16 23:01   ` [bug#61561] [PATCH 5/5] gnu: Add rust-mockall Steve George

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230216230103.107367-1-steve@futurile.net \
    --to=steve@futurile.net \
    --cc=61561@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).