[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/13: gnu: Add python-readability-lxml.
From: |
guix-commits |
Subject: |
07/13: gnu: Add python-readability-lxml. |
Date: |
Sat, 1 Oct 2022 12:10:52 -0400 (EDT) |
lilyp pushed a commit to branch master
in repository guix.
commit 7b7562d930648380d03c2ffa06cbd0f145791ce9
Author: Liliana Marie Prikler <liliana.prikler@gmail.com>
AuthorDate: Sat Sep 17 21:50:48 2022 +0200
gnu: Add python-readability-lxml.
* 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 34d6aa5ea0..74fa826889 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27967,6 +27967,38 @@ characteristics. These measures are basically linear
regressions based on the
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")
- branch master updated (225e00bd19 -> 4b3493ed01), guix-commits, 2022/10/01
- 01/13: gnu: gtk: Update to 4.8.1., guix-commits, 2022/10/01
- 02/13: gnu: webkitgtk: Update to 2.38.0., guix-commits, 2022/10/01
- 07/13: gnu: Add python-readability-lxml.,
guix-commits <=
- 08/13: gnu: Add syndication-domination., guix-commits, 2022/10/01
- 03/13: gnu: libadwaita: Update to 1.2.0., guix-commits, 2022/10/01
- 09/13: gnu: gfeeds: Use git origin., guix-commits, 2022/10/01
- 11/13: gnu: gfeeds: Update to 1.0.3., guix-commits, 2022/10/01
- 13/13: gnu: komikku: Update to 1.0.0., guix-commits, 2022/10/01
- 06/13: gnu: Add python-timeout-decorator., guix-commits, 2022/10/01
- 04/13: gnu: blueprint-compiler: Wrap GUIX_PYTHONPATH and GI_TYPELIB_PATH., guix-commits, 2022/10/01
- 12/13: gnu: komikku: Use G-Expressions., guix-commits, 2022/10/01
- 05/13: gnu: pugixml: Update to 1.12.1., guix-commits, 2022/10/01
- 10/13: gnu: gfeeds: Modernize package description., guix-commits, 2022/10/01