blob: 990ccacb4fbcc6795820051775563964e4c196f7 (
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
50
51
52
53
54
55
56
57
58
59
60
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
six,
webencodings,
pytest-expect,
pytestCheckHook,
unstableGitUpdater,
}:
buildPythonPackage {
pname = "html5lib";
version = "1.1-unstable-2024-02-21";
pyproject = true;
src = fetchFromGitHub {
owner = "html5lib";
repo = "html5lib-python";
rev = "fd4f032bc090d44fb11a84b352dad7cbee0a4745";
hash = "sha256-Hyte1MEqlrD2enfunK1qtm3FJlUDqmhSyrCjo7VaBgA=";
};
patches = [
# https://github.com/html5lib/html5lib-python/pull/583
./python314-compat.patch
];
build-system = [ setuptools ];
dependencies = [
six
webencodings
];
nativeCheckInputs = [
pytest-expect
pytestCheckHook
];
passthru.updateScript = unstableGitUpdater {
branch = "master";
};
meta = {
homepage = "https://github.com/html5lib/html5lib-python";
downloadPage = "https://github.com/html5lib/html5lib-python/releases";
description = "HTML parser based on WHAT-WG HTML5 specification";
longDescription = ''
html5lib is a pure-python library for parsing HTML. It is designed to
conform to the WHATWG HTML specification, as is implemented by all
major web browsers.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
prikhi
];
};
}
|