From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 57889@debbugs.gnu.org
Subject: [bug#57889] [PATCH 4/8] gnu: Add python-readability-lxml.
Date: Sat, 17 Sep 2022 21:50:48 +0200 [thread overview]
Message-ID: <d0d97ccccc870c45befeabc1cc2599250657f448.camel@gmail.com> (raw)
In-Reply-To: <406e4fd3c75650e148b7ab0a86036b4cff1206c1.camel@gmail.com>
* gnu/packages/python-xyz.scm (python-readability-lxml): New variable.
---
gnu/packages/python-xyz.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 14d3b1a9c1..1246d75095 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27891,6 +27891,38 @@ (define-public python-readability
number of words, syllables, and sentences.")
(license license:asl2.0)))
+(define-public python-readability-lxml
+ (package
+ (name "python-readability-lxml")
+ (version "0.8.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/buriy/python-readability")
+ (commit (string-append "v" version))))
+ (sha256
+ (base32
+ "13nfy2v0pbbf62jn9qwgi489gg97hbb22q6w3f78mnvjxd2m19rh"))
+ (snippet
+ #~(begin (delete-file "readability/compat/two.py")))))
+ (build-system python-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "python" "-m" "pytest" "-v" "tests/")))))))
+ (propagated-inputs (list python-chardet python-cssselect python-lxml))
+ (native-inputs (list python-timeout-decorator python-pytest))
+ (home-page "http://github.com/buriy/python-readability")
+ (synopsis "HTML to text parser")
+ (description
+ "This package provides classes and function that strip gratuitous markup
+from web pages to make them easier to read.")
+ (license license:asl2.0)))
+
(define-public python-listparser
(package
(name "python-listparser")
--
2.37.3
next prev parent reply other threads:[~2022-09-17 21:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-17 21:41 [bug#57889] [PATCH 0/8] Add gfeeds-next Liliana Marie Prikler
2022-09-15 20:15 ` [bug#57889] [PATCH 6/8] gnu: gfeeds: Use git origin Liliana Marie Prikler
2022-09-15 20:16 ` [bug#57889] [PATCH 7/8] gnu: gfeeds: Modernize package description Liliana Marie Prikler
2022-09-17 16:32 ` [bug#57889] [PATCH 1/8] gnu: blueprint-compiler: Wrap GUIX_PYTHONPATH and GI_TYPELIB_PATH Liliana Marie Prikler
2022-09-17 16:35 ` [bug#57889] [PATCH 8/8] gnu: Add gfeeds-next Liliana Marie Prikler
2022-10-01 21:19 ` bug#57889: " liliana.prikler
2022-09-17 19:29 ` [bug#57889] [PATCH 2/8] gnu: pugixml: Update to 1.12.1 Liliana Marie Prikler
2022-09-17 19:50 ` [bug#57889] [PATCH 3/8] gnu: Add python-timeout-decorator Liliana Marie Prikler
2022-09-17 19:50 ` Liliana Marie Prikler [this message]
2022-09-17 20:03 ` [bug#57889] [PATCH 5/8] gnu: Add syndication-domination Liliana Marie Prikler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d0d97ccccc870c45befeabc1cc2599250657f448.camel@gmail.com \
--to=liliana.prikler@gmail.com \
--cc=57889@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.