GNU bug report logs - #52920
[PATCH] gnu: Add python-pystitcher.

Previous Next

Package: guix-patches;

Reported by: Greg Hogan <code <at> greghogan.com>

Date: Fri, 31 Dec 2021 18:22:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 52920 in the body.
You can then email your comments to 52920 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#52920; Package guix-patches. (Fri, 31 Dec 2021 18:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Greg Hogan <code <at> greghogan.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 31 Dec 2021 18:22:02 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add python-pystitcher.
Date: Fri, 31 Dec 2021 13:21:18 -0500
[Message part 1 (text/plain, inline)]
From 79411499a651687bf8ccb11662779056680a061b Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Fri, 31 Dec 2021 18:07:51 +0000
Subject: [PATCH 1/3] gnu: python-validators: Update to 0.18.2.

* gnu/packages/python-xyz.scm (python-validators): Update to 0.18.2.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b6534c677f..b4ed17cca9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -19111,13 +19111,13 @@ (define-public python-shellescape
 (define-public python-validators
   (package
     (name "python-validators")
-    (version "0.14.2")
+    (version "0.18.2")
     (source (origin
               (method url-fetch)
               (uri (pypi-uri "validators" version))
               (sha256
                (base32
-                "024m15j33szd0v8k5l4ccish6n0b4knq81gmb4fq25ynwyyyd4mi"))))
+                "19lypf7hm7p203ay3v8zmckc5rv6889zkfdm16nki1972f99mk9p"))))
     (build-system python-build-system)
     (arguments
      '(#:phases (modify-phases %standard-phases
-- 
2.34.0

From 7f4633525ba6676f90ff29dca871fa76823da871 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Fri, 31 Dec 2021 18:09:32 +0000
Subject: [PATCH 2/3] gnu: Add python-pypdf3.

* gnu/packages/python-xyz.scm (python-pypdf3): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b4ed17cca9..07c587792c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27867,3 +27867,24 @@ (define-public python-iwlib
     (description
      "This package provides a Python interface to iw wireless tools.")
     (license license:gpl2)))
+
+(define-public python-pypdf3
+  (package
+    (name "python-pypdf3")
+    (version "1.0.5")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "PyPDF3" version))
+        (sha256
+          (base32
"018hlq9q2qa96vw4j7ppq352znykldwy98h2w9qcpkvpi93sjqhc"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     (list python-tqdm))
+  (home-page "https://github.com/sfneal/PyPDF3")
+  (synopsis "Utility to read and write PDFs with Python")
+  (description "PyPDF3 is a pure-python PDF library capable of splitting,
+merging together, cropping, and transforming the pages of PDF files.  It
can
+also add custom data, viewing options, and passwords to PDF files.  It can
+retrieve text and metadata from PDFs as well as merge entire files
together.")
+  (license license:bsd-3)))
-- 
2.34.0

From c004ab43c203f6bfc90fb7b4e0e5873293cfebd0 Mon Sep 17 00:00:00 2001
From: Greg Hogan <code <at> greghogan.com>
Date: Fri, 31 Dec 2021 18:12:07 +0000
Subject: [PATCH 3/3] gnu: Add python-pystitcher.

* gnu/packages/python-xyz.scm (python-pystitcher): New variable.
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 07c587792c..41b4230b49 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27888,3 +27888,29 @@ (define-public python-pypdf3
 also add custom data, viewing options, and passwords to PDF files.  It can
 retrieve text and metadata from PDFs as well as merge entire files
together.")
   (license license:bsd-3)))
+
+(define-public python-pystitcher
+  (package
+    (name "python-pystitcher")
+    (version "1.0.4")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/captn3m0/pystitcher")
+         (commit
+          (string-append "v" version))))
+       (file-name
+        (git-file-name name version))
+       (sha256
+        (base32 "03yrzqhcsjdj5zprrk3bh5bbyqfy3vfhxra9974vmkir3m121394"))))
+    (build-system python-build-system)
+    (inputs
+     (list python-html5lib python-importlib-metadata python-markdown
+           python-pypdf3 python-validators))
+  (home-page "https://github.com/captn3m0/pystitcher")
+  (synopsis "Declaratively stitch together a PDF file from multiple
sources")
+  (description "Stitch your PDF files together, generating nice
customizable
+bookmarks using a declarative input in the form of a markdown file.")
+  (license license:expat)))
-- 
2.34.0
[Message part 2 (text/html, inline)]
[0001-gnu-python-validators-Update-to-0.18.2.patch (application/octet-stream, attachment)]
[0002-gnu-Add-python-pypdf3.patch (application/octet-stream, attachment)]
[0003-gnu-Add-python-pystitcher.patch (application/octet-stream, attachment)]

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Tue, 11 Jan 2022 10:06:01 GMT) Full text and rfc822 format available.

Notification sent to Greg Hogan <code <at> greghogan.com>:
bug acknowledged by developer. (Tue, 11 Jan 2022 10:06:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Greg Hogan <code <at> greghogan.com>
Cc: 52920-done <at> debbugs.gnu.org
Subject: Re: [bug#52920] [PATCH] gnu: Add python-pystitcher.
Date: Tue, 11 Jan 2022 11:05:04 +0100
Hello,

Greg Hogan <code <at> greghogan.com> writes:

> From 79411499a651687bf8ccb11662779056680a061b Mon Sep 17 00:00:00 2001
> From: Greg Hogan <code <at> greghogan.com>
> Date: Fri, 31 Dec 2021 18:07:51 +0000
> Subject: [PATCH 1/3] gnu: python-validators: Update to 0.18.2.
>
> * gnu/packages/python-xyz.scm (python-validators): Update to 0.18.2.

[...]

>
> * gnu/packages/python-xyz.scm (python-pypdf3): New variable.

[...]

> * gnu/packages/python-xyz.scm (python-pystitcher): New variable.

I fixed description of this one.

Also, I had to deal with merge conflicts because you added your packages
at the end of the python-xyz.scm file and I wasn't quick enough to apply
your patches. In large files such as python-xyz.scm, I suggest not to
put definitions there.

Anyway, all applied. Thanks!

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 08 Feb 2022 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 135 days ago.

Previous Next


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