Subject: bug#53114: closed (Re: [bug#53075] [PATCH 1/41] gnu: rust-rbw: adding rust-zeroize-1.4)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 19 Jan 2022 13:30:16 +0000

Your bug report

#53075: [PATCH 39/41] gnu: rust-rbw: adding rust-paw

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
53075: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=53075
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#53075] [PATCH 1/41] gnu: rust-rbw: adding rust-zeroize-1.4
From: Nicolas Goaziou <[email-masked]>
To: Nicolas Graves via Guix-patches via <[email-masked]>
Cc: Nicolas Graves <[email-masked]>, [email-masked]
Date: Wed, 19 Jan 2022 14:29:32 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Nicolas Graves via Guix-patches via <[email-masked]> writes:

> From 117ac2e745d1e9e2122bdf5859ae2b2781ca01c4 Mon Sep 17 00:00:00 2001
> From: Nicolas Graves <[email-masked]>
> Date: Thu, 6 Jan 2022 23:16:42 +0100
> Subject: [PATCH 02/42] rust-rbw dependencies : adding rust-zeroize-1.4

Thank you. First some general notes about your patches.

The first thing is that your patch set should have gone under the same
bug number. You created more than 40 bugs for rbw. You may want to look
at "Contributing" section of the Guix manual for details.

Also, commit messages are normalized in Guix. You should look at what
I wrote instead of yours to get a feel about it.

Eventually, descriptions should consist of full sentences.

Now about this patch.

Unless under exceptional circumstances, we don't add a new package for
a change below the first non-zero digit. In this case, the common way is
to simply update rust-zeroize-1 to 1.4.3.

Therefore, I dropped this patch and did the above.

Regards,
-- 
Nicolas Goaziou

Subject: [PATCH 39/41] gnu: rust-rbw: adding rust-paw
From: Nicolas Graves <[email-masked]>
To: [email-masked]
Date: Fri, 07 Jan 2022 15:30:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

>From aaa870f575ab13e0b58754c0392c2cd001c359ab Mon Sep 17 00:00:00 2001
From: Nicolas Graves <[email-masked]>
Date: Fri, 7 Jan 2022 13:52:16 +0100
Subject: [PATCH 40/42] rust-rbw dependencies : adding rust-paw

---
 gnu/packages/crates-io.scm | 122 ++++++++++++++++++++++++++++++++-----
 1 file changed, 108 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 50d5c215b4..3672b63475 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37268,30 +37268,124 @@ (define-public rust-pathdiff-0.1
         (base32
          "0cfg3isnx6mf3wbi7rsg4nmvywby40sbcs589n20fgi09l4p1gx3"))))))
 
-(define-public rust-pbkdf2-0.10
+(define-public rust-paw-1
   (package
-    (name "rust-pbkdf2")
-    (version "0.10.0")
+    (name "rust-paw")
+    (version "1.0.0")
     (source
       (origin
         (method url-fetch)
-        (uri (crate-uri "pbkdf2" version))
+        (uri (crate-uri "paw" version))
         (file-name
          (string-append name "-" version ".tar.gz"))
         (sha256
          (base32
-          "0d3l06x5mg96njxfsksjwl6440alf72qh4rwrpnq4fwmrz1qqqm4"))))
+          "1sc481y42rb08hmww525m4539ppl8k0w14kwxp13vg2dasdzrh09"))))
     (build-system cargo-build-system)
     (arguments
-      `(#:skip-build?
-        #t
-        #:cargo-inputs
-        (("rust-digest" ,rust-digest-0.10)
-         ("rust-hmac" ,rust-hmac-0.12)
-         ("rust-password-hash" ,rust-password-hash-0.3)
-         ("rust-rayon" ,rust-rayon-1)
-         ("rust-sha-1" ,rust-sha-1-0.10)
-         ("rust-sha2" ,rust-sha2-0.10))))
+      `(#:cargo-inputs
+        (("rust-paw-attributes" ,rust-paw-attributes-1)
+         ("rust-paw-raw" ,rust-paw-raw-1))
+        #:cargo-development-inputs
+        (("rust-paw-structopt" ,rust-paw-structopt-1)
+         ("rust-runtime" ,rust-runtime-0.3)
+         ("rust-structopt" ,rust-structopt-0.2))
+        #:tests? #f))                   ; FIXME
+    (home-page "https://github.com/rust-cli/paw")
+    (synopsis "CLI argument parser")
+    (description "CLI argument parser. Paw defines a trait, a proc macro, and
+an example implementation that when combined allow you to pass fully parsed
+arguments to main. It avoids the need to remember which methods to call in order
+to parse arguments in the CLI.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-paw-attributes-1
+  (package
+    (name "rust-paw-attributes")
+    (version "1.0.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "paw-attributes" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "0fda1v7y5pfmg8d2v7m0pyvif6c44qjz914jjn718pdyclrmhd8g"))))
+    (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))))
+    (home-page "https://github.com/rust-cli/paw")
+    (synopsis "Proc Macro attributes for the Paw crate")
+    (description "Proc Macro attributes for the Paw crate.")
+    (license (list license:expat license:asl2.0))))
+
+(define-public rust-paw-raw-1
+  (package
+    (name "rust-paw-raw")
+    (version "1.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "paw-raw" version))
+        (file-name (string-append name "-" version ".tar.gz"))
+        (sha256
+          (base32 "1wk76ipp34gjh42vivmgdkb2rgr26gwhn34gk7z5l378ixk5j2vz"))))
+    (build-system cargo-build-system)
+    (home-page "https://github.com/rust-cli/paw")
+    (synopsis "Traits to implement custom Paw implementations")
+    (description "Traits to implement custom Paw implementations")
+    (license (list license:expat license:asl2.0))))
+
+
+(define-public rust-paw-structopt-1
+  (package
+   (name "rust-paw-structopt")
+   (version "1.0.0")
+   (source
+    (origin
+     (method url-fetch)
+     (uri (crate-uri "paw-structopt" version))
+     (file-name (string-append name "-" version ".tar.gz"))
+     (sha256
+      (base32 "1iwg83xqjpfgpy8wrq173cy7zgkyxfryd230sh34f5qsjdx7zap4"))))
+   (build-system cargo-build-system)
+   (arguments
+    `(#:cargo-inputs
+      (("rust-proc-macro2" ,rust-proc-macro2-0.4)
+       ("rust-quote" ,rust-quote-0.6)
+       ("rust-structopt" ,rust-structopt-0.2)
+       ("rust-syn" ,rust-syn-0.15))))
+   (home-page "https://github.com/rust-cli/paw")
+   (synopsis "Structopt support for the Paw crate")
+   (description "Structopt support for the Paw crate.")
+   (license (list license:expat license:asl2.0))))
+
+(define-public rust-pbkdf2-0.10
+  (package
+    (name "rust-pbkdf2")
+    (version "0.10.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "pbkdf2" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "0d3l06x5mg96njxfsksjwl6440alf72qh4rwrpnq4fwmrz1qqqm4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build?
+       #t
+       #:cargo-inputs
+       (("rust-digest" ,rust-digest-0.10)
+        ("rust-hmac" ,rust-hmac-0.12)
+        ("rust-password-hash" ,rust-password-hash-0.3)
+        ("rust-rayon" ,rust-rayon-1)
+        ("rust-sha-1" ,rust-sha-1-0.10)
+        ("rust-sha2" ,rust-sha2-0.10))))
     (home-page "https://github.com/RustCrypto/password-hashing")
     (synopsis "Generic implementation of PBKDF2")
     (description "This package contains a collection of password hashing
-- 
2.34.0