~ruther/guix-local

b9e5e93342bde25d63f4e6281577c0c4c5311c82 — BonfaceKilz 4 years ago 67c72c8
gnu: Move csvdiff to (gnu packages textutils).

* gnu/packages/golang.scm (go-github-com-aswinkarthik-csvdiff): Add deprecated
alias. Move to ...
* gnu/packages/textutils (csvdiff): ... here.

Signed-off-by: Arun Isaac <arunisaac@systemreboot.net>
2 files changed, 47 insertions(+), 42 deletions(-)

M gnu/packages/golang.scm
M gnu/packages/textutils.scm
M gnu/packages/golang.scm => gnu/packages/golang.scm +1 -42
@@ 8664,48 8664,7 @@ non-cryptographic hash algorithm, working at speeds close to RAM limits.")
    (license license:asl2.0)))

(define-public go-github-com-aswinkarthik-csvdiff
  (package
    (name "go-github-com-aswinkarthik-csvdiff")
    (version "1.4.0")
    (source
      (origin
        (method git-fetch)
        (uri (git-reference
               (url "https://github.com/aswinkarthik/csvdiff")
               (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
         (base32
          "0cd1ikxsypjqisfnmr7zix3g7x8p892w77086465chyd39gpk97b"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/aswinkarthik/csvdiff"))
    (propagated-inputs
     (list go-golang-org-x-sys
           go-github-com-stretchr-testify
           go-github-com-spf13-cobra
           go-github-com-spf13-afero
           go-github-com-spaolacci-murmur3
           go-github-com-mattn-go-colorable
           go-github-com-fatih-color
           go-github-com-cespare-xxhash
           go-github-com-oneofone-xxhash))
    (home-page "https://github.com/aswinkarthik/csvdiff")
    (synopsis "Fast diff tool for comparing CSV files")
    (description "@code{csvdiff} is a diff tool to compute changes between two
CSV files.  It can compare CSV files with a million records in under 2
seconds.  It is specifically suited for comparing CSV files dumped from
database tables.  GNU Diff is orders of magnitude faster for comparing line by
line.  @code{csvdiff} supports

@itemize
@item Selective comparison of fields in a row
@item Specifying group of columns as primary-key to uniquely identify a row
@item Ignoring columns
@item Several output formats including colored git style output or
JSON for post-processing
@end itemize")
    (license license:expat)))
  (deprecated-package "go-github-com-aswinkarthik-csvdiff" csvdiff))

(define-public go-gopkg-in-djherbis-times-v1
  (package

M gnu/packages/textutils.scm => gnu/packages/textutils.scm +46 -0
@@ 23,6 23,7 @@
;;; Copyright © 2021 Jean-Baptiste Volatier <jbv@pm.me>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
;;;
;;; This file is part of GNU Guix.
;;;


@@ 68,6 69,7 @@
  #:use-module (gnu packages readline)
  #:use-module (gnu packages ruby)
  #:use-module (gnu packages slang)
  #:use-module (gnu packages syncthing)
  #:use-module (gnu packages web))

(define-public dos2unix


@@ 1336,3 1338,47 @@ languages such as HTML, Markdown, Asciidoc, and reStructuredText.  The community
around it also has a list of style guides implemented with Vale in
@url{https://github.com/errata-ai/styles, their styles repo}.")
    (license license:expat)))

(define-public csvdiff
  (package
    (name "csvdiff")
    (version "1.4.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/aswinkarthik/csvdiff")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32
         "0cd1ikxsypjqisfnmr7zix3g7x8p892w77086465chyd39gpk97b"))))
    (build-system go-build-system)
    (arguments
     '(#:import-path "github.com/aswinkarthik/csvdiff"))
    (propagated-inputs
     (list go-golang-org-x-sys
           go-github-com-stretchr-testify
           go-github-com-spf13-cobra
           go-github-com-spf13-afero
           go-github-com-spaolacci-murmur3
           go-github-com-mattn-go-colorable
           go-github-com-fatih-color
           go-github-com-cespare-xxhash
           go-github-com-oneofone-xxhash))
    (home-page "https://github.com/aswinkarthik/csvdiff")
    (synopsis "Fast diff tool for comparing CSV files")
    (description "@code{csvdiff} is a diff tool to compute changes between two
CSV files.  It can compare CSV files with a million records in under 2
seconds.  It is specifically suited for comparing CSV files dumped from
database tables.  GNU Diff is orders of magnitude faster for comparing line by
line.  @code{csvdiff} supports

@itemize
@item Selective comparison of fields in a row
@item Specifying group of columns as primary-key to uniquely identify a row
@item Ignoring columns
@item Several output formats including colored git style output or
JSON for post-processing
@end itemize")
    (license license:expat)))