gnu: Add python-readability-lxml.
* gnu/packages/python-xyz.scm (python-readability-lxml): New variable.master
parent
b6b09a93fd
commit
7b7562d930
|
@ -27967,6 +27967,38 @@ characteristics. These measures are basically linear regressions based on the
|
||||||
number of words, syllables, and sentences.")
|
number of words, syllables, and sentences.")
|
||||||
(license license:asl2.0)))
|
(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
|
(define-public python-listparser
|
||||||
(package
|
(package
|
||||||
(name "python-listparser")
|
(name "python-listparser")
|
||||||
|
|
Reference in New Issue