Subject: bug#50853: python-feedparser

From: Lio Novelli <[email-masked]>
Date: Mon, 27 Sep 2021 22:00:13 +0200

This patch provides a bit more than just bugfix:
 - Add two python package definitions sgmllib3k, sgqlc
 - updates python-feedparser
From bff17f280636f91fb79fbfa508ee95ec42f33bc2 Mon Sep 17 00:00:00 2001
From: l3n <[email-masked]>
Date: Mon, 27 Sep 2021 21:57:36 +0200
Subject: [PATCH] Add two python package definitions sgmllib3k, sgqlc and
 update feedparser.

---
 gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++
 gnu/packages/web.scm        |  6 +++--
 2 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 86b1cdc2b1..d4ba1781cd 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -108,6 +108,7 @@
 ;;; Copyright © 2021 Simon Streit <[email-masked]>
 ;;; Copyright © 2021 Daniel Meißner <[email-masked]>
 ;;; Copyright © 2021 Pradana Aumars <[email-masked]>
+;;; Copyright © 2021 Liopold D. Novelli <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -27116,3 +27117,53 @@ platform-specific directories, e.g. the ``user data dir''.")
      "This package provides the @code{python-box} Python module.
 It implements advanced Python dictionaries with dot notation access.")
     (license license:expat)))
+
+(define-public python-sgmllib3k
+  (package
+    (name "python-sgmllib3k")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "sgmllib3k" version ".tar.gz"))
+       (sha256
+        (base32
+         "1s8jm3dgqabgf8x96931scji679qkhvczlv3qld4qxpsicfgns3q"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f))
+    (home-page
+     "https://github.com/conda-forge/sgmllib3k-feedstock")
+    (synopsis "A quick and dirty port of python2-sgmllib old module.")
+    (description
+     "sgmllib was dropped in Python 3. For those depending on it, that’s somewhat unfortunate. This is a quick and dirty port of this old module. I just ran 2to3 on it and published it. I don’t intend to maintain it, so it might be a good idea to eventually think about finding another module to use.")
+    (license license:bsd-3)))
+
+(define-public python-sgqlc
+  (package
+    (name "python-sgqlc")
+    (version "14.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "sgqlc" version))
+        (sha256
+         (base32
+          "0ba7s0n5w6fmdn7gd638k1dq5pydzgd5hl6krw1f9xsci3qlldki"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:tests? #f)) ; The tests are not distributed
+    (native-inputs
+     `(("python-sphinx" ,python-sphinx)
+       ("python-sphinx-argparse" ,python-sphinx-argparse)
+       ("python-websockets" ,python-websockets)
+     ))
+    (propagated-inputs
+     `(("python-requests" ,python-requests)
+       ))
+    (home-page "https://github.com/profusion/sgqlc")
+    (synopsis "An easy to use GraphQL client.")
+    (description
+     "An easy to use GraphQL client.")
+    (license "ISC License")))
+
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index d7bbd7489b..16200ae649 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -4764,15 +4764,17 @@ their web site.")
 (define-public python-feedparser
   (package
     (name "python-feedparser")
-    (version "6.0.2")
+    (version "6.0.8")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "feedparser" version ".tar.gz"))
        (sha256
         (base32
-         "0x0hm9brh3j71645pydvlkrwxaaca9dnwd7xahwjyjaz882s200v"))))
+         "0qcnkyjjfj5gg5rhd1j4zzlqx5h34bma18zwgj68q95b0l543q2w"))))
     (build-system python-build-system)
+    (propagated-inputs
+     `(("python-sgmllib3k" ,python-sgmllib3k)))
     (arguments
      '(#:tests? #f))
     (home-page
-- 
2.33.0