blob: 2a3e0dfb42c3de0909e50fa82ec695dc119e4592 (
plain) (
blame)
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
50
51
52
|
{
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 = pname;
rev = "refs/tags/v${version}";
hash = "sha256-0Qn+To/d3+HMx+KhhgJBEHVYPOfIeBnngBraY7r4uSs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ pkgs.libxml2 ];
propagatedBuildInputs = [
chardet
lxml
];
nativeCheckInputs = [
beautifulsoup4
pytestCheckHook
];
pythonImportsCheck = [ "html5_parser" ];
pytestFlagsArray = [ "test/*.py" ];
meta = with lib; {
description = "Fast C based HTML 5 parsing for python";
homepage = "https://html5-parser.readthedocs.io";
license = licenses.asl20;
maintainers = [ ];
};
}
|