python-feedparser

  • Open
  • quality assurance status badge
Details
2 participants
  • Lio Novelli
  • Vinicius Monego
Owner
unassigned
Submitted by
Lio Novelli
Severity
normal
L
L
Lio Novelli wrote on 27 Sep 2021 20:24
(address . bug-guix@gnu.org)
20210927202426.4cff11f9@mail.kompot.si
Feedparser module is missing sgmllib dependency:

>>> import feedparser
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/len/.guix-profile/lib/python3.8/site-packages/feedparser/__init__.py",
line 28, in <module> from .api import parse File
"/home/len/.guix-profile/lib/python3.8/site-packages/feedparser/api.py",
line 36, in <module> from .html import _BaseHTMLProcessor File
"/home/len/.guix-profile/lib/python3.8/site-packages/feedparser/html.py",
line 31, in <module> from .sgml import * File
"/home/len/.guix-profile/lib/python3.8/site-packages/feedparser/sgml.py",
line 30, in <module> import sgmllib ModuleNotFoundError: No
module named 'sgmllib'



I'll try to provide the patch but this will be my first one and I'm
having some issues getting through (understanding) guix documentation
on submitting bugs and patches.
L
L
Lio Novelli wrote on 27 Sep 2021 22:00
(address . 50853@debbugs.gnu.org)
20210927215959.58abf108.lio.novelli@radiostudent.si
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 <lion@rhiz0.me>
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(-)

Toggle diff (92 lines)
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 <simon@netpanic.org>
;;; Copyright © 2021 Daniel Meißner <daniel.meissner-i4k@ruhr-uni-bochum.de>
;;; Copyright © 2021 Pradana Aumars <paumars@courrier.dev>
+;;; Copyright © 2021 Liopold D. Novelli <lio@kompot.si>
;;;
;;; 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
V
V
Vinicius Monego wrote on 9 Nov 2021 14:28
e2ca32256a7d2ccd80e43375a73accbcc7b8d604.camel@posteo.net
Em seg, 2021-09-27 às 22:00 +0200, Lio Novelli escreveu:
Toggle quote (4 lines)
> This patch provides a bit more than just bugfix:
>  - Add two python package definitions sgmllib3k, sgqlc
>  - updates python-feedparser

Hi,

Could you format these patches with git-format-patch and submit as a
series of 4 to guix-patches@gnu.org ?

My suggestion is:

1. Add python-sgmllib3k.
2. Add python-sgqlc.
3. Add dependency on python-sgmllib3k for python-feedparser.
4. Update python-feedparser.

See commit messages in git log for examples on how to write commit
messages for these changes.

Toggle quote (3 lines)
> + (synopsis "A quick and dirty port of python2-sgmllib old
> module.")

Synopses should not end with full stop. You can use guix lint to check
for common linting mistakes.

Toggle quote (3 lines)
> + (description
> + "An easy to use GraphQL client.")

Descriptions should be full sentences. e.g. "This package provides an
easy to use GraphQL client.".

See Submitting Patches in the documentation for more info:
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 50853@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 50853
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch