GNU bug report logs - #57999
[PATCH] gnu: Add textpieces

Previous Next

Package: guix-patches;

Reported by: Sughosha <Sughosha <at> proton.me>

Date: Thu, 22 Sep 2022 06:24:03 UTC

Severity: normal

Tags: patch

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

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 57999 in the body.
You can then email your comments to 57999 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#57999; Package guix-patches. (Thu, 22 Sep 2022 06:24:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sughosha <Sughosha <at> proton.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 22 Sep 2022 06:24:03 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH] gnu: Add textpieces
Date: Thu, 22 Sep 2022 06:23:13 +0000
From: Sughosha <sughosha <at> proton.me>

* gnu/packages/text-editors.scm (textpieces): New variable.
---
 gnu/packages/text-editors.scm | 55 +++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 0c30a705b9..8852bbf067 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -45,6 +45,7 @@ (define-module (gnu packages text-editors)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system glib-or-gtk)
+  #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages)
@@ -62,6 +63,7 @@ (define-module (gnu packages text-editors)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages guile)
   #:use-module (gnu packages haskell-xyz)
@@ -1260,3 +1262,56 @@ (define-public mle
 splitting, multiple cursors, and integration with various shell
 commands.")
     (license license:asl2.0)))
+
+(define-public textpieces
+  (package
+    (name "textpieces")
+    (version "3.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/liferooter/textpieces")
+                    (commit (string-append "v" version))))
+              (sha256
+               (base32
+                "14zq2c7js80m4cq8wpdb3kyz5sw96l8znbz027w8s94gqhm632ff"))))
+    (arguments
+     `(#:tests? #f ;fails to validate appstream file
+       #:glib-or-gtk? #t))
+    (build-system meson-build-system)
+    (native-inputs (list pkg-config
+                         vala
+                         desktop-file-utils
+                         appstream-glib
+                         gettext-minimal
+                         `(,glib "bin")
+                         blueprint-compiler
+                         `(,gtk "bin")))
+    (inputs (list gtk
+                  libadwaita
+                  gtksourceview
+                  json-glib
+                  libgee
+                  python
+                  python-pygobject
+                  python-pyyaml))
+    (home-page "https://github.com/liferooter/textpieces")
+    (synopsis "Quick text processor")
+    (description
+     "Text Pieces tool for quick text transformations such as checksums,
+encoding, decoding and so on.
+
+The basic features of Text Pieces are:
+@itemize
+@item Base64 encoding and decoding
+@item SHA-1, SHA-2 and MD5 checksums
+@item Prettify and minify JSON
+@item Covert JSON to YAML and vice versa
+@item Count lines, symbols and words
+@item Escape and unescape string, URL and HTML
+@item Remove leading and trailing whitespaces
+@item Sort and reverse sort lines
+@item Reverse lines and whole text
+@item You can write your own scripts and create custom tools
+@end itemize")
+    (license license:gpl3)))
-- 
2.37.3




Information forwarded to guix-patches <at> gnu.org:
bug#57999; Package guix-patches. (Wed, 28 Sep 2022 17:27:01 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sughosha <Sughosha <at> proton.me>
Cc: 57999 <at> debbugs.gnu.org
Subject: Re: bug#57999: [PATCH] gnu: Add textpieces
Date: Wed, 28 Sep 2022 13:26:43 -0400
Hello,

Sughosha <Sughosha <at> proton.me> writes:

> From: Sughosha <sughosha <at> proton.me>
>
> * gnu/packages/text-editors.scm (textpieces): New variable.

[...]

> +(define-public textpieces
> +  (package
> +    (name "textpieces")
> +    (version "3.2.0")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/liferooter/textpieces")
> +                    (commit (string-append "v" version))))
> +              (sha256
> +               (base32
> +                "14zq2c7js80m4cq8wpdb3kyz5sw96l8znbz027w8s94gqhm632ff"))))
> +    (arguments
> +     `(#:tests? #f ;fails to validate appstream file

Is this a known issue upstream?  If so, it should be linked with a full
sentence, for example: "The test suite fails validating the appstream
file (see: https://www.upstream-issue-url)."

> +       #:glib-or-gtk? #t))
> +    (build-system meson-build-system)
> +    (native-inputs (list pkg-config
> +                         vala
> +                         desktop-file-utils
> +                         appstream-glib
> +                         gettext-minimal
> +                         `(,glib "bin")
> +                         blueprint-compiler
> +                         `(,gtk "bin")))
> +    (inputs (list gtk
> +                  libadwaita
> +                  gtksourceview
> +                  json-glib
> +                  libgee
> +                  python
> +                  python-pygobject
> +                  python-pyyaml))

Please sort the dependencies in lexicographical order.

> +    (home-page "https://github.com/liferooter/textpieces")
> +    (synopsis "Quick text processor")
> +    (description
> +     "Text Pieces tool for quick text transformations such as checksums,

                    ^ is a tool
                    
> +encoding, decoding and so on.
                     ^, etc.

> +The basic features of Text Pieces are:
> +@itemize
> +@item Base64 encoding and decoding
> +@item SHA-1, SHA-2 and MD5 checksums
> +@item Prettify and minify JSON
> +@item Covert JSON to YAML and vice versa
> +@item Count lines, symbols and words
> +@item Escape and unescape string, URL and HTML
> +@item Remove leading and trailing whitespaces
> +@item Sort and reverse sort lines
> +@item Reverse lines and whole text
> +@item You can write your own scripts and create custom tools
> +@end itemize")
> +    (license license:gpl3)))

The rest looks fine.  It'd be nice to get the test suite passing.

Thanks,

Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#57999; Package guix-patches. (Wed, 28 Sep 2022 17:37:01 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: maxim.cournoyer <at> gmail.com
Cc: 57999 <at> debbugs.gnu.org
Subject: Re: bug#57999: [PATCH] gnu: Add textpieces
Date: Wed, 28 Sep 2022 17:35:54 +0000
[Message part 1 (text/plain, inline)]
Hi,

Thanks for reviewing. The problem is only that while validating the appstream it requires connecting to internet, but in Guix packaging works offline. Otherwise if built outside Guix, then it passes the test.

And, I will correct and send another patch file.

Sughosha

Gesendet von Proton Mail für Mobilgeräte

-------- Original-Nachricht --------
Am 28. Sept. 2022, 7:26 PM, schrieb Maxim Cournoyer :

> Hello, Sughosha  writes: > From: Sughosha  > > * gnu/packages/text-editors.scm (textpieces): New variable. [...] > +(define-public textpieces > + (package > + (name "textpieces") > + (version "3.2.0") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/liferooter/textpieces") > + (commit (string-append "v" version)))) > + (sha256 > + (base32 > + "14zq2c7js80m4cq8wpdb3kyz5sw96l8znbz027w8s94gqhm632ff")))) > + (arguments > + `(#:tests? #f ;fails to validate appstream file Is this a known issue upstream? If so, it should be linked with a full sentence, for example: "The test suite fails validating the appstream file (see: https://www.upstream-issue-url)." > + #:glib-or-gtk? #t)) > + (build-system meson-build-system) > + (native-inputs (list pkg-config > + vala > + desktop-file-utils > + appstream-glib > + gettext-minimal > + `(,glib "bin") > + blueprint-compiler > + `(,gtk "bin"))) > + (inputs (list gtk > + libadwaita > + gtksourceview > + json-glib > + libgee > + python > + python-pygobject > + python-pyyaml)) Please sort the dependencies in lexicographical order. > + (home-page "https://github.com/liferooter/textpieces") > + (synopsis "Quick text processor") > + (description > + "Text Pieces tool for quick text transformations such as checksums, ^ is a tool > +encoding, decoding and so on. ^, etc. > +The basic features of Text Pieces are: > +@itemize > +@item Base64 encoding and decoding > +@item SHA-1, SHA-2 and MD5 checksums > +@item Prettify and minify JSON > +@item Covert JSON to YAML and vice versa > +@item Count lines, symbols and words > +@item Escape and unescape string, URL and HTML > +@item Remove leading and trailing whitespaces > +@item Sort and reverse sort lines > +@item Reverse lines and whole text > +@item You can write your own scripts and create custom tools > +@end itemize") > + (license license:gpl3))) The rest looks fine. It'd be nice to get the test suite passing. Thanks, Maxim
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#57999; Package guix-patches. (Sun, 16 Oct 2022 18:31:01 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Sughosha <Sughosha <at> proton.me>
Cc: 57999 <at> debbugs.gnu.org, maxim.cournoyer <at> gmail.com
Subject: Re: [bug#57999] [PATCH] gnu: Add textpieces
Date: Sun, 16 Oct 2022 19:27:29 +0100
[Message part 1 (text/plain, inline)]
Sughosha via Guix-patches via <guix-patches <at> gnu.org> writes:

> Thanks for reviewing. The problem is only that while validating the
> appstream it requires connecting to internet, but in Guix packaging
> works offline. Otherwise if built outside Guix, then it passes the
> test.
>
> And, I will correct and send another patch file.

Hi both,

I got a bit confused and I thought an updated patch was attached to this
reply, and went ahead and pushed as
fc68b97db12b34dec558fde73d651aa0d3bbd446, with a couple of tweaks.

I did miss changing some of the things that Maxim suggested though. If
you can Sughosha, please do send a patch to make the relevant changes,
otherwise I can try and clean things up.

Thanks,

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

Information forwarded to guix-patches <at> gnu.org:
bug#57999; Package guix-patches. (Mon, 17 Oct 2022 05:21:02 GMT) Full text and rfc822 format available.

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

From: Sughosha <Sughosha <at> proton.me>
To: "57999 <at> debbugs.gnu.org" <57999 <at> debbugs.gnu.org>
Cc: Christopher Baines <mail <at> cbaines.net>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: [bug#57999] [PATCH] gnu: Add textpieces
Date: Mon, 17 Oct 2022 05:19:44 +0000
From c5737d59c0854162dfed9f580ca30b2c4a5fdfad Mon Sep 17 00:00:00 2001
From: Sughosha <sughosha <at> proton.me>
Date: Mon, 17 Oct 2022 07:09:40 +0200
Subject: [PATCH] gnu: textpieces: Reorder dependencies and fix description

* gnu/packages/textpieces.scm (textpieces)[description]: Fix description.
[inputs]: Reorder dependencies.
[native-inputs]: Reorder dependencies.
---
 gnu/packages/text-editors.scm | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index dacd2ef80d..f278b0902c 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -920,28 +920,28 @@ (define-public textpieces
        #:glib-or-gtk? #t))
     (build-system meson-build-system)
     (native-inputs
-     (list pkg-config
-           vala
+     (list appstream-glib
+           blueprint-compiler
            desktop-file-utils
-           appstream-glib
            gettext-minimal
-           blueprint-compiler
            `(,glib "bin")
-           `(,gtk "bin")))
+           `(,gtk "bin")
+           pkg-config
+           vala))
     (inputs
-     (list json-glib
+     (list gtk
+           gtksourceview
+           json-glib
            libadwaita
            libgee
            python
            python-pygobject
-           python-pyyaml
-           gtk
-           gtksourceview))
+           python-pyyaml))
     (home-page "https://github.com/liferooter/textpieces")
     (synopsis "Quick text processor")
     (description
-     "Text Pieces tool for quick text transformations such as checksums,
-encoding, decoding and so on.
+     "Text Pieces is a tool for quick text transformations such as checksums,
+encoding, decoding, etc.
 
 The basic features of Text Pieces are:
 @itemize
-- 
2.38.0





Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Tue, 18 Oct 2022 10:16:01 GMT) Full text and rfc822 format available.

Notification sent to Sughosha <Sughosha <at> proton.me>:
bug acknowledged by developer. (Tue, 18 Oct 2022 10:16:01 GMT) Full text and rfc822 format available.

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

From: Christopher Baines <mail <at> cbaines.net>
To: Sughosha <Sughosha <at> proton.me>
Cc: 57999-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: [bug#57999] [PATCH] gnu: Add textpieces
Date: Tue, 18 Oct 2022 11:15:18 +0100
[Message part 1 (text/plain, inline)]
Sughosha <Sughosha <at> proton.me> writes:

> From c5737d59c0854162dfed9f580ca30b2c4a5fdfad Mon Sep 17 00:00:00 2001
> From: Sughosha <sughosha <at> proton.me>
> Date: Mon, 17 Oct 2022 07:09:40 +0200
> Subject: [PATCH] gnu: textpieces: Reorder dependencies and fix description
>
> * gnu/packages/textpieces.scm (textpieces)[description]: Fix description.
> [inputs]: Reorder dependencies.
> [native-inputs]: Reorder dependencies.
> ---
>  gnu/packages/text-editors.scm | 22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)

Thanks, I've pushed this to master as
3c7d4fdc30530f35005d2555a50bbe9fa4b12da7.

Chris
[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, 15 Nov 2022 12:24:11 GMT) Full text and rfc822 format available.

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

Previous Next


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