Patchwork [06/16] gnu: Add python-html5lib-0.9.

login
register
mail settings
Submitter Ricardo Wurmus
Date Nov. 1, 2016, 12:20 p.m.
Message ID <20161101122046.751-7-ricardo.wurmus@mdc-berlin.de>
Download mbox | patch
Permalink /patch/17059/
State New
Headers show

Comments

Ricardo Wurmus - Nov. 1, 2016, 12:20 p.m.
* gnu/packages/python.scm (python-html5lib-0.9, python2-html5lib-0.9):
New variables.
---
 gnu/packages/python.scm | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Roel Janssen - Nov. 1, 2016, 1:40 p.m.
Ricardo Wurmus writes:

> * gnu/packages/python.scm (python-html5lib-0.9, python2-html5lib-0.9):
> New variables.
> ---
>  gnu/packages/python.scm | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
> index e6f537e..ed736ff 100644
> --- a/gnu/packages/python.scm
> +++ b/gnu/packages/python.scm
> @@ -4789,6 +4789,22 @@ and written in Python.")
>  (define-public python2-html5lib
>    (package-with-python2 python-html5lib))
>  
> +;; Needed for python-bleach, a dependency of python-notebook
> +(define-public python-html5lib-0.9
> +  (package
> +    (inherit python-html5lib)
> +    (version "0.999")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (pypi-uri "html5lib" version))
> +       (sha256
> +        (base32
> +         "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
> +
> +(define-public python2-html5lib-0.9
> +  (package-with-python2 python-html5lib-0.9))
> +
>  (define-public python-urwid
>    (package
>      (name "python-urwid")

Doesn't python-bleach work with the newer version of python-html5lib?

The patch looks good to me.

Kind regards,
Roel Janssen
Ricardo Wurmus - Nov. 1, 2016, 2:31 p.m.
Roel Janssen <roel@gnu.org> writes:

> Ricardo Wurmus writes:
>
>> * gnu/packages/python.scm (python-html5lib-0.9, python2-html5lib-0.9):
>> New variables.
>> ---
>>  gnu/packages/python.scm | 16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)
>>
>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>> index e6f537e..ed736ff 100644
>> --- a/gnu/packages/python.scm
>> +++ b/gnu/packages/python.scm
>> @@ -4789,6 +4789,22 @@ and written in Python.")
>>  (define-public python2-html5lib
>>    (package-with-python2 python-html5lib))
>>  
>> +;; Needed for python-bleach, a dependency of python-notebook
>> +(define-public python-html5lib-0.9
>> +  (package
>> +    (inherit python-html5lib)
>> +    (version "0.999")
>> +    (source
>> +     (origin
>> +       (method url-fetch)
>> +       (uri (pypi-uri "html5lib" version))
>> +       (sha256
>> +        (base32
>> +         "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
>> +
>> +(define-public python2-html5lib-0.9
>> +  (package-with-python2 python-html5lib-0.9))
>> +
>>  (define-public python-urwid
>>    (package
>>      (name "python-urwid")
>
> Doesn't python-bleach work with the newer version of python-html5lib?

Bleach has a recent commit that restricts the dependency version of
html5lib (it used to be >=0.9, not it’s >=0.9 && <=0.999), so I assume
that newer versions do not work.

~~ Ricardo
Roel Janssen - Nov. 1, 2016, 6:24 p.m.
Ricardo Wurmus writes:

> Roel Janssen <roel@gnu.org> writes:
>
>> Ricardo Wurmus writes:
>>
>>> * gnu/packages/python.scm (python-html5lib-0.9, python2-html5lib-0.9):
>>> New variables.
>>> ---
>>>  gnu/packages/python.scm | 16 ++++++++++++++++
>>>  1 file changed, 16 insertions(+)
>>>
>>> diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
>>> index e6f537e..ed736ff 100644
>>> --- a/gnu/packages/python.scm
>>> +++ b/gnu/packages/python.scm
>>> @@ -4789,6 +4789,22 @@ and written in Python.")
>>>  (define-public python2-html5lib
>>>    (package-with-python2 python-html5lib))
>>>  
>>> +;; Needed for python-bleach, a dependency of python-notebook
>>> +(define-public python-html5lib-0.9
>>> +  (package
>>> +    (inherit python-html5lib)
>>> +    (version "0.999")
>>> +    (source
>>> +     (origin
>>> +       (method url-fetch)
>>> +       (uri (pypi-uri "html5lib" version))
>>> +       (sha256
>>> +        (base32
>>> +         "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
>>> +
>>> +(define-public python2-html5lib-0.9
>>> +  (package-with-python2 python-html5lib-0.9))
>>> +
>>>  (define-public python-urwid
>>>    (package
>>>      (name "python-urwid")
>>
>> Doesn't python-bleach work with the newer version of python-html5lib?
>
> Bleach has a recent commit that restricts the dependency version of
> html5lib (it used to be >=0.9, not it’s >=0.9 && <=0.999), so I assume
> that newer versions do not work.

Right.  Go on then :)

Kind regards,
Roel Janssen

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index e6f537e..ed736ff 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4789,6 +4789,22 @@  and written in Python.")
 (define-public python2-html5lib
   (package-with-python2 python-html5lib))
 
+;; Needed for python-bleach, a dependency of python-notebook
+(define-public python-html5lib-0.9
+  (package
+    (inherit python-html5lib)
+    (version "0.999")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "html5lib" version))
+       (sha256
+        (base32
+         "17n4zfsj6ynmbwdwviywmj8r6nzr3xvfx2zs0xhndmvm51z7z263"))))))
+
+(define-public python2-html5lib-0.9
+  (package-with-python2 python-html5lib-0.9))
+
 (define-public python-urwid
   (package
     (name "python-urwid")