blob: 67f05cb8e7f6379210edbed9a4334debf8d066e9 (
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
53
54
55
56
57
58
59
|
{ 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 = with maintainers; [ ];
};
}
|