GNU bug report logs - #61562
[PATCH 1/5] gnu: Add rust-pretty-assertions-0.5.

Previous Next

Package: guix-patches;

Reported by: Steve George <steve <at> futurile.net>

Date: Thu, 16 Feb 2023 22:59:01 UTC

Severity: normal

Tags: patch

Merged with 61561, 61563, 61564, 61565

Done: Efraim Flashner <efraim <at> flashner.co.il>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61562 in the body.
You can then email your comments to 61562 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#61562; Package guix-patches. (Thu, 16 Feb 2023 22:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Steve George <steve <at> futurile.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 16 Feb 2023 22:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: Guix patches list <guix-patches <at> gnu.org>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, Steve George <steve <at> futurile.net>
Subject: [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5.
Date: Thu, 16 Feb 2023 22:57:38 +0000
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#61562; Package guix-patches. (Thu, 16 Feb 2023 23:00:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Steve George <steve <at> futurile.net>
To: Guix patches list <guix-patches <at> gnu.org>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, Steve George <steve <at> futurile.net>
Subject: [PATCH 4/5] gnu: Add rust-mockall-derive.
Date: Thu, 16 Feb 2023 22:57:41 +0000
* gnu/packages/crates-io.scm (rust-mockall-derive-0.11): New variable.

---
* version 0.11.1 to match rust-mockall version

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 42137b6853..9ce18ea1f0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33760,6 +33760,32 @@ (define-public rust-mockall-double-0.3
 select the mock struct at compile time.  Used with the Mockall crate.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-mockall-derive-0.11
+  (package
+    (name "rust-mockall-derive")
+    (version "0.11.1") ; match with the rust-mockall version
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "mockall-derive" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1ixhmsrg5ky4b2jlvbxhlpr3mbv7frd6wr8msm005vijb5rmcb96"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #f
+       #:cargo-inputs 
+       (("rust-cfg-if" ,rust-cfg-if-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs 
+       (("rust-pretty-assertions" ,rust-pretty-assertions-0.7))))
+    (home-page "https://github.com/asomers/mockall")
+    (synopsis "Procedural macros for the Mockall crate")
+    (description "Procedural macros for the Mockall crate.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-model-0.1
   (package
     (name "rust-model")
-- 
2.39.1





Merged 61561 61562 61563 61564. Request was from Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at> to control <at> debbugs.gnu.org. (Fri, 17 Feb 2023 07:17:02 GMT) Full text and rfc822 format available.

Forcibly Merged 61561 61562 61563 61564 61565. Request was from Liliana Marie Prikler <liliana.prikler <at> ist.tugraz.at> to control <at> debbugs.gnu.org. (Fri, 17 Feb 2023 07:17:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#61562; Package guix-patches. (Mon, 20 Feb 2023 12:03:03 GMT) Full text and rfc822 format available.

Message #15 received at 61562-done <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Steve George <steve <at> futurile.net>
Cc: 61561-done <at> debbugs.gnu.org, 61563-done <at> debbugs.gnu.org,
 61565-done <at> debbugs.gnu.org, 61562-done <at> debbugs.gnu.org,
 61564-done <at> debbugs.gnu.org
Subject: Re: [PATCH 1/5] gnu: Add rust-pretty-assertions-0.5.
Date: Mon, 20 Feb 2023 14:02:21 +0200
[Message part 1 (text/plain, inline)]
Thanks for the patches. I dropped the rust-pretty-assertions-0.5 one
since the others didn't seem to depend on it and I enabled building on
them where possible.

-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Mar 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 143 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.