unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51587] [PATCH v2 1/3] gnu: Add python-sgmllib3k.
       [not found] <20211111153005.3326-1-Morgan.J.Smith@outlook.com>
@ 2021-11-11 15:30 ` Morgan.J.Smith
  2021-11-12 22:59   ` bug#51587: [PATCH 0/3] Add rss2email Ludovic Courtès
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 2/3] gnu: python-feedparser: Add input Morgan.J.Smith
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 3/3] gnu: Add rss2email Morgan.J.Smith
  2 siblings, 1 reply; 4+ messages in thread
From: Morgan.J.Smith @ 2021-11-11 15:30 UTC (permalink / raw)
  To: monego, 51587; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

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

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 495d7faa87..5fcb513d78 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27786,3 +27786,26 @@ (define-public python-ijson
      "Ijson is an iterative JSON parser with standard Python iterator
 interfaces.")
     (license license:bsd-3)))
+
+(define-public python-sgmllib3k
+  (package
+    (name "python-sgmllib3k")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sgmllib3k" version))
+       (sha256
+        (base32 "1s8jm3dgqabgf8x96931scji679qkhvczlv3qld4qxpsicfgns3q"))))
+    (build-system python-build-system)
+    ;; Requires a test.html input that is not supplied
+    (arguments
+     `(#:tests? #f))
+    (home-page "https://pypi.org/project/sgmllib3k/")
+    ;; Actual homepage seems to be down
+    ;; (home-page "https://hg.hardcoded.net/sgmllib")
+    (synopsis "Python 3 port of sgmllib")
+    (description "A quick, dirty, unmaintained port of sgmllib to Python 3.
+It is used to parse text files formatted in @acronym{SGML,Standard Generalized
+Mark-up Language}.")
+    (license license:bsd-3)))
-- 
2.33.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#51587] [PATCH v2 2/3] gnu: python-feedparser: Add input
       [not found] <20211111153005.3326-1-Morgan.J.Smith@outlook.com>
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 1/3] gnu: Add python-sgmllib3k Morgan.J.Smith
@ 2021-11-11 15:30 ` Morgan.J.Smith
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 3/3] gnu: Add rss2email Morgan.J.Smith
  2 siblings, 0 replies; 4+ messages in thread
From: Morgan.J.Smith @ 2021-11-11 15:30 UTC (permalink / raw)
  To: monego, 51587; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/web.scm (python-feedparser) [propagated-inputs]: Add
python-sgmllib3k
---
 gnu/packages/web.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index a08440887f..20bb86ccf6 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4773,6 +4773,8 @@ (define-public python-feedparser
         (base32
          "0x0hm9brh3j71645pydvlkrwxaaca9dnwd7xahwjyjaz882s200v"))))
     (build-system python-build-system)
+    (propagated-inputs
+     `(("python-sgmllib3k" ,python-sgmllib3k)))
     (arguments
      '(#:tests? #f))
     (home-page
-- 
2.33.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#51587] [PATCH v2 3/3] gnu: Add rss2email.
       [not found] <20211111153005.3326-1-Morgan.J.Smith@outlook.com>
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 1/3] gnu: Add python-sgmllib3k Morgan.J.Smith
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 2/3] gnu: python-feedparser: Add input Morgan.J.Smith
@ 2021-11-11 15:30 ` Morgan.J.Smith
  2 siblings, 0 replies; 4+ messages in thread
From: Morgan.J.Smith @ 2021-11-11 15:30 UTC (permalink / raw)
  To: monego, 51587; +Cc: Morgan Smith

From: Morgan Smith <Morgan.J.Smith@outlook.com>

* gnu/packages/mail.scm (rss2email): New variable.
---
 gnu/packages/mail.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 31cf4ec6b0..1d9f361b80 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -42,6 +42,7 @@
 ;;; Copyright © 2020 divoplade <d@divoplade.fr>
 ;;; Copyright © 2021 Xinglu Chen <public@yoctocell.xyz>
 ;;; Copyright © 2021 Benoit Joly <benoit@benoitj.ca>
+;;; Copyright © 2021 Morgan Smith <Morgan.J.Smith@outlook.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4612,3 +4613,41 @@ (define-public crm114
 Bigrams, WINNOW, Correlation, KNN/Hyperspace, or Bit Entropy (or by other
 means--it's all programmable).")
     (license license:gpl3)))
+
+(define-public rss2email
+  (package
+    (name "rss2email")
+    (version "3.13.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/rss2email/rss2email")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0g1yr3v3ibdh2jqil64fbdbplx5m2yzxr893fqfkwcc5c7fbwl4d"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (with-directory-excursion "test"
+                 ;; Skip networking tests
+                 (substitute* "test.py"
+                   (("( *)class (:?TestSend|TestFetch).*" match indent)
+                    (string-append indent "@unittest.skip(\"Networking stuff skipped\")\n"
+                                   indent match)))
+                 (invoke "python" "-m" "unittest"))))))))
+    (inputs
+     `(("python-feedparser" ,python-feedparser)
+       ("python-html2text" ,python-html2text)))
+    (home-page "https://github.com/rss2email/rss2email")
+    (synopsis "Converts RSS/Atom newsfeeds to email")
+    (description "Fetches RSS/Atom newsfeeds, converts them into emails, and
+emails them.")
+    ;; GPL version 2 or 3.  NOT 2+.
+    (license (list license:gpl2
+                   license:gpl3))))
-- 
2.33.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#51587: [PATCH 0/3] Add rss2email.
  2021-11-11 15:30 ` [bug#51587] [PATCH v2 1/3] gnu: Add python-sgmllib3k Morgan.J.Smith
@ 2021-11-12 22:59   ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2021-11-12 22:59 UTC (permalink / raw)
  To: Morgan.J.Smith; +Cc: 51587-done, monego

Hi Morgan,

Morgan.J.Smith@outlook.com skribis:

> From: Morgan Smith <Morgan.J.Smith@outlook.com>
>
> * gnu/packages/python-xyz.scm (python-sgmllib3k): New variable.

[...]

> * gnu/packages/web.scm (python-feedparser) [propagated-inputs]: Add
> python-sgmllib3k

[...]

> * gnu/packages/mail.scm (rss2email): New variable.

I turned descriptions into full sentences and applied.

Thank you, and thanks Vinicius for reviewing!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-11-12 23:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20211111153005.3326-1-Morgan.J.Smith@outlook.com>
2021-11-11 15:30 ` [bug#51587] [PATCH v2 1/3] gnu: Add python-sgmllib3k Morgan.J.Smith
2021-11-12 22:59   ` bug#51587: [PATCH 0/3] Add rss2email Ludovic Courtès
2021-11-11 15:30 ` [bug#51587] [PATCH v2 2/3] gnu: python-feedparser: Add input Morgan.J.Smith
2021-11-11 15:30 ` [bug#51587] [PATCH v2 3/3] gnu: Add rss2email Morgan.J.Smith

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).