1{ lib
2, buildPythonPackage
3, fetchPypi
4, flake8
5, pytest
6, pytest-expect
7, mock
8, six
9, webencodings
10}:
11
12buildPythonPackage rec {
13 pname = "html5lib";
14 version = "1.0.1";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736";
19 };
20
21 checkInputs = [ flake8 pytest pytest-expect mock ];
22 propagatedBuildInputs = [
23 six webencodings
24 ];
25
26 checkPhase = ''
27 # remove test causing error
28 # https://github.com/html5lib/html5lib-python/issues/411
29 rm html5lib/tests/test_stream.py
30 py.test
31 '';
32
33 meta = {
34 homepage = https://github.com/html5lib/html5lib-python;
35 downloadPage = https://github.com/html5lib/html5lib-python/releases;
36 description = "HTML parser based on WHAT-WG HTML5 specification";
37 longDescription = ''
38 html5lib is a pure-python library for parsing HTML. It is designed to
39 conform to the WHATWG HTML specification, as is implemented by all
40 major web browsers.
41 '';
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ domenkozar prikhi ];
44 };
45}