Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, flake8 5, pytest_4 6, pytest-expect 7, mock 8, six 9, webencodings 10}: 11 12buildPythonPackage rec { 13 pname = "html5lib"; 14 version = "1.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f"; 19 }; 20 21 checkInputs = [ flake8 pytest_4 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}