GNU bug report logs - #64875
[PATCH 0/4] Adding xsv

Previous Next

Package: guix-patches;

Reported by: Wilko Meyer <w <at> wmeyer.eu>

Date: Wed, 26 Jul 2023 15:51:02 UTC

Severity: normal

Tags: patch

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 64875 in the body.
You can then email your comments to 64875 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 efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 26 Jul 2023 15:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Wilko Meyer <w <at> wmeyer.eu>:
New bug report received and forwarded. Copy sent to efraim <at> flashner.co.il, guix-patches <at> gnu.org. (Wed, 26 Jul 2023 15:51:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: guix-patches <at> gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH 0/4] Adding xsv
Date: Wed, 26 Jul 2023 17:49:11 +0200
Hi Guix,

I'd like to add xsv, which is a csv cli toolkit, to guix packages. It
has two dependencies, rust-chan-0.1 and rust-filetime-0.1, which I've
added in this patch series as well. As this is my first time adding
something to guix packages I tried to be as close to the guix manual as
possible, please let me know if there's still something missing/if
there's something I can do to further improve the quality of my patches.

Best Regards,

Wilko Meyer

Wilko Meyer (4):
  gnu: Added rust-chan-0.1.
  gnu: Added rust-filetime-0.1 variant.
  gnu: Added xsv.
  gnu: Added copyright information.

 gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++++++
 gnu/packages/rust-apps.scm | 36 ++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)


base-commit: e05dcecd0df49a397aba49585a626cae16a6306c
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 26 Jul 2023 15:54:01 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH 2/4] gnu: Added rust-filetime-0.1 variant.
Date: Wed, 26 Jul 2023 17:52:30 +0200
* added rust-filetime-0.1 variant inheriting from v0.2
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 30afb82eb8..dae443e949 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22350,6 +22350,25 @@ (define-public rust-filetime-0.2
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-filetime-0.1
+  (package
+    (inherit rust-filetime-0.2)
+    (name "rust-filetime")
+    (version "0.1.15")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "filetime" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "03xishfxzpr4nfz4g3r218d6b6g94rxsqw9pw96m6wa8wgrm6iki"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-0.1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-redox-syscall" ,rust-redox-syscall-0.1))))))
+
 (define-public rust-field-offset-0.3
   (package
     (name "rust-field-offset")
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 26 Jul 2023 15:54:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH 1/4] gnu: Added rust-chan-0.1.
Date: Wed, 26 Jul 2023 17:52:29 +0200
* added rust-chan-0.1 to crates-io.scm
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9574e2797..30afb82eb8 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -10761,6 +10761,26 @@ (define-public rust-cfg-if-0.1
        (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
         ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
 
+(define-public rust-chan-0.1
+  (package
+    (name "rust-chan")
+    (version "0.1.23")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "chan" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1n0y992mqfk5zpxzvrv14g9qivacmd4fiv4j1nmgyrg0vaimcjfi"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-rand" ,rust-rand-0.3))))
+    (home-page "https://github.com/BurntSushi/chan")
+    (synopsis "DEPRECATED. Use crossbeam-channel instead")
+    (description "DEPRECATED. Use crossbeam-channel instead.")
+    (license (list license:unlicense license:expat))))
+
 (define-public rust-chacha20-0.8
   (package
     (name "rust-chacha20")
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 26 Jul 2023 15:54:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH 3/4] gnu: Added xsv.
Date: Wed, 26 Jul 2023 17:52:31 +0200
* added xsv to rust-apps.scm
---
 gnu/packages/rust-apps.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 8c29969712..2762d6186a 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2362,3 +2362,38 @@ (define-public htmlq
     (synopsis "Like jq, but for HTML")
     (description "Extract content from HTML files using CSS selectors.")
     (license license:expat)))
+
+(define-public xsv
+  (package
+    (name "xsv")
+    (version "0.13.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "xsv" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0pvzr7x5phlya6m5yikvy13vgbazshw0plysckz9zmf2ly5x4jl8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-chan" ,rust-chan-0.1)
+                       ("rust-csv" ,rust-csv-1)
+                       ("rust-csv-index" ,rust-csv-index-0.1)
+                       ("rust-docopt" ,rust-docopt-1)
+                       ("rust-filetime" ,rust-filetime-0.1)
+                       ("rust-num-cpus" ,rust-num-cpus-1)
+                       ("rust-rand" ,rust-rand-0.4)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-derive" ,rust-serde-derive-1)
+                       ("rust-streaming-stats" ,rust-streaming-stats-0.2)
+                       ("rust-tabwriter" ,rust-tabwriter-1)
+                       ("rust-threadpool" ,rust-threadpool-1))
+       #:cargo-development-inputs (("rust-log" ,rust-log-0.4)
+                                   ("rust-quickcheck" ,rust-quickcheck-0.6))))
+    (home-page "https://github.com/BurntSushi/xsv")
+    (synopsis "High performance CSV command line toolkit")
+    (description
+     "This package provides a high performance CSV command line toolkit.")
+    (license (list license:unlicense license:expat))))
-- 
2.41.0





Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 26 Jul 2023 15:54:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>
Subject: [PATCH 4/4] gnu: Added copyright information.
Date: Wed, 26 Jul 2023 17:52:32 +0200
* added copyright information to rust-apps.scm
* added copyright information to crates-io.scm
---
 gnu/packages/crates-io.scm | 1 +
 gnu/packages/rust-apps.scm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dae443e949..6a46bd5f3d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2022 Greg Hogan <code <at> greghogan.com>
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Paul Alesius <paul <at> unnservice.com>
+;;; Copyright © 2023 Wilko Meyer <w <at> wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 2762d6186a..bf14e1290e 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2022 ( <paren <at> disroot.org>
 ;;; Copyright © 2022 John Kehayias <john.kehayias <at> protonmail.com>
 ;;; Copyright © 2022 Greg Hogan <code <at> greghogan.com>
+;;; Copyright © 2023 Wilko Meyer <w <at> wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Thu, 05 Oct 2023 10:25:02 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Wilko Meyer <w <at> wmeyer.eu>
Cc: 64875 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>,
 guix-patches <at> gnu.org
Subject: Re: [bug#64875] [PATCH 0/4] Adding xsv
Date: Thu, 05 Oct 2023 11:22:00 +0100
[Message part 1 (text/plain, inline)]
Wilko Meyer <w <at> wmeyer.eu> writes:

> I'd like to add xsv, which is a csv cli toolkit, to guix packages. It
> has two dependencies, rust-chan-0.1 and rust-filetime-0.1, which I've
> added in this patch series as well. As this is my first time adding
> something to guix packages I tried to be as close to the guix manual as
> possible, please let me know if there's still something missing/if
> there's something I can do to further improve the quality of my patches.
>
> Best Regards,
>
> Wilko Meyer
>
> Wilko Meyer (4):
>   gnu: Added rust-chan-0.1.
>   gnu: Added rust-filetime-0.1 variant.
>   gnu: Added xsv.
>   gnu: Added copyright information.
>
>  gnu/packages/crates-io.scm | 40 ++++++++++++++++++++++++++++++++++++++
>  gnu/packages/rust-apps.scm | 36 ++++++++++++++++++++++++++++++++++
>  2 files changed, 76 insertions(+)
>
>
> base-commit: e05dcecd0df49a397aba49585a626cae16a6306c

Hi Wilko,

Thanks for sending these patches. I think there's an issue with xsv as
one of the inputs (rust-csv-index) doesn't seem to exist.

Do these new packages build for you on your system?

Thanks,

Chris

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Thu, 05 Oct 2023 10:25:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Thu, 05 Oct 2023 13:59:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: Christopher Baines <mail <at> cbaines.net>
Cc: Wilko Meyer <w <at> wmeyer.eu>, Efraim Flashner <efraim <at> flashner.co.il>,
 guix-patches <at> gnu.org, 64875 <at> debbugs.gnu.org
Subject: Re: [bug#64875] [PATCH 0/4] Adding xsv
Date: Thu, 05 Oct 2023 15:25:58 +0200
Hi Chris,

Thanks for reviewing my patch series!

Christopher Baines <mail <at> cbaines.net> writes:

> Thanks for sending these patches. I think there's an issue with xsv as
> one of the inputs (rust-csv-index) doesn't seem to exist.

You're right, I forgot to include rust-csv-index in this patch series,
but already had it locally, which is why I was able to build xsv without
noticing it. I'll include a patch to add rust-csv-index in a minute.

Others than that, and with rust-csv-index included, it should build (at
least it does so for me locally)/work fine:

wilko <at> guix230 ~/devel/guix [env]$ xsv --version
0.13.0

-- 
Kind regards,

Wilko Meyer
w <at> wmeyer.eu




Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Thu, 05 Oct 2023 13:59:02 GMT) Full text and rfc822 format available.

Information forwarded to efraim <at> flashner.co.il, guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Thu, 05 Oct 2023 14:06:01 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH] gnu: Add rust-csv-index.
Date: Thu,  5 Oct 2023 16:04:15 +0200
* gnu/packages/crates-io.scm (rust-csv-index-0.1): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 36f1e93f1d..b25a7fec46 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17124,6 +17124,26 @@ (define-public rust-cssparser-macros-0.3
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-csv-index-0.1
+  (package
+    (name "rust-csv-index")
+    (version "0.1.6")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "csv-index" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "01048y84y0bakqm0x4y1svjv6lzc753b9q598xp7xgcqrdgi6x7j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-csv" ,rust-csv-1))))
+    (home-page "https://github.com/BurntSushi/rust-csv")
+    (synopsis "On disk CSV indexing data structures.")
+    (description "On disk CSV indexing data structures.")
+    (license (list license:unlicense license:expat))))
+
 (define-public rust-csv-1
   (package
     (name "rust-csv")

base-commit: ad5e4fe54a66c725dc03dedebf8e5c65723ccb74
prerequisite-patch-id: 5bde835de1e0f7e9cd752986da0585463713d745
prerequisite-patch-id: cda50d13de497f5c74c87b2def4ae6a7d5807305
prerequisite-patch-id: 7024afc52961b5947429f925c55265f29607c801
prerequisite-patch-id: 10a4f92340880065a5210c983cc878c98c075855
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 11 Oct 2023 10:20:01 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Wilko Meyer <w <at> wmeyer.eu>
Cc: 64875 <at> debbugs.gnu.org, Efraim Flashner <efraim <at> flashner.co.il>,
 guix-patches <at> gnu.org
Subject: Re: [bug#64875] [PATCH 0/4] Adding xsv
Date: Wed, 11 Oct 2023 11:16:36 +0100
[Message part 1 (text/plain, inline)]
Wilko Meyer <w <at> wmeyer.eu> writes:

> Thanks for reviewing my patch series!
>
> Christopher Baines <mail <at> cbaines.net> writes:
>
>> Thanks for sending these patches. I think there's an issue with xsv as
>> one of the inputs (rust-csv-index) doesn't seem to exist.
>
> You're right, I forgot to include rust-csv-index in this patch series,
> but already had it locally, which is why I was able to build xsv without
> noticing it. I'll include a patch to add rust-csv-index in a minute.

I see the new patch now.

The other simple thing I notice is that the commit messages should be in
the present tense (so Add rather than Added). Would you be able to fix
that and then resend the entire series? It's always useful to send all
the patches again when you make changes, as that simplifies the job for
anyone trying to get the latest patches.

Thanks,

Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Wed, 11 Oct 2023 10:20:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Sun, 15 Oct 2023 21:59:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH v2 1/5] gnu: Add rust-filetime-0.1 variant.
Date: Sun, 15 Oct 2023 23:57:01 +0200
* gnu/packages/crates-io.scm (rust-filetime-0.1): New variable.
---
 gnu/packages/crates-io.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 80fb92ec82..7a06d877e2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -24389,6 +24389,25 @@ (define-public rust-filetime-0.2
     (license (list license:asl2.0
                    license:expat))))
 
+(define-public rust-filetime-0.1
+  (package
+    (inherit rust-filetime-0.2)
+    (name "rust-filetime")
+    (version "0.1.15")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "filetime" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "03xishfxzpr4nfz4g3r218d6b6g94rxsqw9pw96m6wa8wgrm6iki"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-0.1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-redox-syscall" ,rust-redox-syscall-0.1))))))
+
 (define-public rust-field-offset-0.3
   (package
     (name "rust-field-offset")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Sun, 15 Oct 2023 21:59:02 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH v2 2/5] gnu: Add rust-chan-0.1.
Date: Sun, 15 Oct 2023 23:57:02 +0200
* gnu/packages/crates-io.scm (rust-chan-0.1): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 7a06d877e2..2fa2cfe695 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -11424,6 +11424,26 @@ (define-public rust-cfg-if-0.1
        (("rust-compiler-builtins" ,rust-compiler-builtins-0.1)
         ("rust-rustc-std-workspace-core" ,rust-rustc-std-workspace-core-1))))))
 
+(define-public rust-chan-0.1
+  (package
+    (name "rust-chan")
+    (version "0.1.23")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "chan" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "1n0y992mqfk5zpxzvrv14g9qivacmd4fiv4j1nmgyrg0vaimcjfi"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-rand" ,rust-rand-0.3))))
+    (home-page "https://github.com/BurntSushi/chan")
+    (synopsis "DEPRECATED. Use crossbeam-channel instead")
+    (description "DEPRECATED. Use crossbeam-channel instead.")
+    (license (list license:unlicense license:expat))))
+
 (define-public rust-chacha20-0.8
   (package
     (name "rust-chacha20")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Sun, 15 Oct 2023 21:59:03 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH v2 3/5] gnu: Add xsv.
Date: Sun, 15 Oct 2023 23:57:03 +0200
* gnu/packages/crates-io.scm (xsv): New variable.
---
 gnu/packages/rust-apps.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 2f41ca4849..f7d346d3de 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -2537,3 +2537,38 @@ (define-public htmlq
     (synopsis "Like jq, but for HTML")
     (description "Extract content from HTML files using CSS selectors.")
     (license license:expat)))
+
+(define-public xsv
+  (package
+    (name "xsv")
+    (version "0.13.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "xsv" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0pvzr7x5phlya6m5yikvy13vgbazshw0plysckz9zmf2ly5x4jl8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-chan" ,rust-chan-0.1)
+                       ("rust-csv" ,rust-csv-1)
+                       ("rust-csv-index" ,rust-csv-index-0.1)
+                       ("rust-docopt" ,rust-docopt-1)
+                       ("rust-filetime" ,rust-filetime-0.1)
+                       ("rust-num-cpus" ,rust-num-cpus-1)
+                       ("rust-rand" ,rust-rand-0.4)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-derive" ,rust-serde-derive-1)
+                       ("rust-streaming-stats" ,rust-streaming-stats-0.2)
+                       ("rust-tabwriter" ,rust-tabwriter-1)
+                       ("rust-threadpool" ,rust-threadpool-1))
+       #:cargo-development-inputs (("rust-log" ,rust-log-0.4)
+                                   ("rust-quickcheck" ,rust-quickcheck-0.6))))
+    (home-page "https://github.com/BurntSushi/xsv")
+    (synopsis "High performance CSV command line toolkit")
+    (description
+     "This package provides a high performance CSV command line toolkit.")
+    (license (list license:unlicense license:expat))))
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Sun, 15 Oct 2023 21:59:03 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH v2 4/5] gnu: Add rust-csv-index.
Date: Sun, 15 Oct 2023 23:57:04 +0200
* gnu/packages/crates-io.scm (rust-csv-index-0.1): New variable.
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2fa2cfe695..d2d1b44e90 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -17159,6 +17159,26 @@ (define-public rust-cssparser-macros-0.3
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))))))
 
+(define-public rust-csv-index-0.1
+  (package
+    (name "rust-csv-index")
+    (version "0.1.6")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "csv-index" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "01048y84y0bakqm0x4y1svjv6lzc753b9q598xp7xgcqrdgi6x7j"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-csv" ,rust-csv-1))))
+    (home-page "https://github.com/BurntSushi/rust-csv")
+    (synopsis "On disk CSV indexing data structures.")
+    (description "On disk CSV indexing data structures.")
+    (license (list license:unlicense license:expat))))
+
 (define-public rust-csv-1
   (package
     (name "rust-csv")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#64875; Package guix-patches. (Sun, 15 Oct 2023 21:59:03 GMT) Full text and rfc822 format available.

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

From: Wilko Meyer <w <at> wmeyer.eu>
To: 64875 <at> debbugs.gnu.org
Cc: Wilko Meyer <w <at> wmeyer.eu>, mail <at> cbaines.net
Subject: [PATCH v2 5/5] gnu: Add copyright header.
Date: Sun, 15 Oct 2023 23:57:05 +0200
* gnu/packages/crates-io.scm: Add copyright header.
* gnu/packages/rust-apps.scm: Add copyright header.
---
 gnu/packages/crates-io.scm | 1 +
 gnu/packages/rust-apps.scm | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d2d1b44e90..4758a240fa 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -32,6 +32,7 @@
 ;;; Copyright © 2022 Paul A. Patience <paul <at> apatience.com>
 ;;; Copyright © 2022 Paul Alesius <paul <at> unnservice.com>
 ;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose <at> gmail.com>
+;;; Copyright © 2023 Wilko Meyer <w <at> wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index f7d346d3de..d5bbbd05fe 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -24,6 +24,7 @@
 ;;; Copyright © 2022 John Kehayias <john.kehayias <at> protonmail.com>
 ;;; Copyright © 2022 Greg Hogan <code <at> greghogan.com>
 ;;; Copyright © 2023 Arnav Andrew Jose <arnav.jose <at> gmail.com>
+;;; Copyright © 2023 Wilko Meyer <w <at> wmeyer.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
-- 
2.41.0





Reply sent to Efraim Flashner <efraim <at> flashner.co.il>:
You have taken responsibility. (Mon, 16 Oct 2023 09:39:02 GMT) Full text and rfc822 format available.

Notification sent to Wilko Meyer <w <at> wmeyer.eu>:
bug acknowledged by developer. (Mon, 16 Oct 2023 09:39:02 GMT) Full text and rfc822 format available.

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

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Wilko Meyer <w <at> wmeyer.eu>
Cc: 64875-done <at> debbugs.gnu.org, mail <at> cbaines.net
Subject: Re: [bug#64875] [PATCH v2 3/5] gnu: Add xsv.
Date: Mon, 16 Oct 2023 12:37:50 +0300
[Message part 1 (text/plain, inline)]
Thanks. Patches pushed.

-- 
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. (Mon, 13 Nov 2023 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 177 days ago.

Previous Next


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