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 py.test 28 ''; 29 30 meta = { 31 homepage = https://github.com/html5lib/html5lib-python; 32 downloadPage = https://github.com/html5lib/html5lib-python/releases; 33 description = "HTML parser based on WHAT-WG HTML5 specification"; 34 longDescription = '' 35 html5lib is a pure-python library for parsing HTML. It is designed to 36 conform to the WHATWG HTML specification, as is implemented by all 37 major web browsers. 38 ''; 39 license = lib.licenses.mit; 40 maintainers = with lib.maintainers; [ domenkozar prikhi ]; 41 }; 42}