Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / html5lib / default.nix
blobb35cfee63dad76fa1e3bac5266338ed499fdf746
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , fetchpatch
5 , six
6 , webencodings
7 , mock
8 , pytest-expect
9 , pytestCheckHook
12 buildPythonPackage rec {
13   pname = "html5lib";
14   version = "1.1";
15   format = "setuptools";
17   src = fetchPypi {
18     inherit pname version;
19     sha256 = "b2e5b40261e20f354d198eae92afc10d750afb487ed5e50f9c4eaf07c184146f";
20   };
22   patches = [
23     # Fix compatibility with pytest 6.
24     # Will be included in the next release after 1.1.
25     (fetchpatch {
26       url = "https://github.com/html5lib/html5lib-python/commit/2c19b9899ab3a3e8bd0ca35e5d78544334204169.patch";
27       hash = "sha256-VGCeB6o2QO/skeCZs8XLPfgEYVOSRL8cCpG7ajbZWEs=";
28     })
29   ];
31   propagatedBuildInputs = [
32     six
33     webencodings
34   ];
36   # latest release not compatible with pytest 6
37   doCheck = false;
38   nativeCheckInputs = [
39     mock
40     pytest-expect
41     pytestCheckHook
42   ];
44   meta = {
45     homepage = "https://github.com/html5lib/html5lib-python";
46     downloadPage = "https://github.com/html5lib/html5lib-python/releases";
47     description = "HTML parser based on WHAT-WG HTML5 specification";
48     longDescription = ''
49       html5lib is a pure-python library for parsing HTML. It is designed to
50       conform to the WHATWG HTML specification, as is implemented by all
51       major web browsers.
52     '';
53     license = lib.licenses.mit;
54     maintainers = with lib.maintainers; [ domenkozar prikhi ];
55   };