gnu: Add python-html2text, python2-html2text.

* gnu/packages/python-web.scm (python-html2text): New variable.
(python2-html2text): New variable.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
Brendan Tildesley 2019-05-04 02:42:15 +10:00 committed by Danny Milosavljevic
parent 13068a8ccf
commit 7a82ceb7bb
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 22 additions and 0 deletions

View File

@ -299,6 +299,28 @@ other HTTP libraries.")
(define-public python2-httplib2 (define-public python2-httplib2
(package-with-python2 python-httplib2)) (package-with-python2 python-httplib2))
(define-public python-html2text
(package
(name "python-html2text")
(version "2018.1.9")
(source
(origin
(method url-fetch)
(uri (pypi-uri "html2text" version))
(sha256
(base32
"1m6d7ciq30adc3d1n8g6r46072n7q8kdy039pqvnnmp763xi8xb2"))))
(build-system python-build-system)
(home-page "https://pypi.org/project/html2text/")
(synopsis "Convert HTML into plain text")
(description "html2text takes HTML and converts it into plain ASCII text
which is also valid markdown. html2text was originally written by Aaron
Swartz.")
(license license:gpl3+)))
(define-public python2-html2text
(package-with-python2 python-html2text))
(define-public python-mechanicalsoup (define-public python-mechanicalsoup
(package (package
(name "python-mechanicalsoup") (name "python-mechanicalsoup")