Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
53 lines
931 B
Nix
53 lines
931 B
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
chardet,
|
|
fetchFromGitHub,
|
|
lxml,
|
|
pkg-config,
|
|
pkgs,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "html5-parser";
|
|
version = "0.4.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
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 = with lib; {
|
|
description = "Fast C based HTML 5 parsing for python";
|
|
homepage = "https://html5-parser.readthedocs.io";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|