[bug#35446,02/26] gnu: Add python-css-parser, python2-css-parser.
diff mbox series

Message ID 20190427093659.21851-2-mail@brendan.scot
State New
Headers show
Series
  • [bug#35446,01/26] gnu: Use 'license:' prefix in (gnu packages web).
Related show

Checks

Context Check Description
cbaines/applying patch success Successfully applied

Commit Message

Brendan Tildesley April 27, 2019, 9:36 a.m. UTC
* gnu/packages/python-web.scm (python-css-parser, python2-css-parser): New
  variables.
---
 gnu/packages/python-web.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

Comments

Andreas Enge May 3, 2019, 11:48 a.m. UTC | #1
On Sat, Apr 27, 2019 at 07:36:35PM +1000, Brendan Tildesley wrote:
> * gnu/packages/python-web.scm (python-css-parser, python2-css-parser): New
>   variables.

Applied, thanks! Since python2-cssutils has no dependent apart from calibre,
should we maybe delete it to further our efforts of getting rid of python@2?
(python-cssutils is used for other packages.)

Andreas

Patch
diff mbox series

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index b7d03acb4b..91c5e3892a 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -637,6 +637,28 @@  options.")
 (define-public python2-cssutils
   (package-with-python2 python-cssutils))
 
+(define-public python-css-parser
+  (package
+    (inherit python-cssutils)
+    (name "python-css-parser")
+    (version "1.0.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "css-parser" version ".tar.gz"))
+       (sha256
+        (base32
+         "0i4xfykiffxzr4f6y0m2ggqvx1rzam6pw6krlr5k6ldf29akbay7"))))
+    (home-page "https://github.com/ebook-utils/css-parser")
+    (synopsis "Fork of cssutils modified for parsing ebooks")
+    (description
+     "Css-parser is a fork of cssutils 1.0.2, updated and modified for parsing
+ebooks, due to cssutils not receiving updates as of 1.0.2.")
+    (license license:lgpl3+)))
+
+(define-public python2-css-parser
+  (package-with-python2 python-css-parser))
+
 (define-public python-cssselect
   (package
     (name "python-cssselect")