blob: d8756bd17b7d47cbbc0f025ab46c7bec3ef32403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
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 = [ ];
};
}
|