Something went wrong. Try again.
lol
Something went wrong. Try again.
877 B · 49 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950{ lib, beautifulsoup4, buildPythonPackage, chardet, fetchFromGitHub, lxml, pkg-config, pkgs, pytestCheckHook,}:
buildPythonPackage rec { pname = "html5-parser"; version = "0.4.12"; format = "setuptools";
src = fetchFromGitHub { owner = "kovidgoyal"; repo = "html5-parser"; tag = "v${version}"; hash = "sha256-0Qn+To/d3+HMx+KhhgJBEHVYPOfIeBnngBraY7r4uSs="; };
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pkgs.libxml2 ];
propagatedBuildInputs = [ chardet lxml ];
nativeCheckInputs = [ beautifulsoup4 pytestCheckHook ];
pythonImportsCheck = [ "html5_parser" ];
enabledTestPaths = [ "test/*.py" ];
meta = { description = "Fast C based HTML 5 parsing for python"; homepage = "https://html5-parser.readthedocs.io"; license = lib.licenses.asl20; maintainers = [ ]; };}