python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / types-lxml / default.nix
blob85b8b5c331e9d23f40e5a852aa17bb93aa4243be
2   lib,
3   beautifulsoup4,
4   buildPythonPackage,
5   cssselect,
6   fetchFromGitHub,
7   html5lib,
8   lxml,
9   pdm-backend,
10   pyright,
11   pytestCheckHook,
12   pythonOlder,
13   typeguard,
14   types-beautifulsoup4,
15   typing-extensions,
18 buildPythonPackage rec {
19   pname = "types-lxml";
20   version = "2024.09.16";
21   pyproject = true;
23   disabled = pythonOlder "3.8";
25   src = fetchFromGitHub {
26     owner = "abelcheung";
27     repo = "types-lxml";
28     rev = "refs/tags/${version}";
29     hash = "sha256-LQqs9wg6kgubY4SygTNQt5YTtF3LsFj7+RkAlcp4SSo=";
30   };
32   build-system = [ pdm-backend ];
34   dependencies = [
35     cssselect
36     types-beautifulsoup4
37     typing-extensions
38   ];
40   nativeCheckInputs = [
41     beautifulsoup4
42     html5lib
43     lxml
44     pyright
45     pytestCheckHook
46     typeguard
47   ];
49   pythonImportsCheck = [ "lxml-stubs" ];
51   disabledTests = [
52     # AttributeError: 'bytes' object has no attribute 'find_class'
53     # https://github.com/abelcheung/types-lxml/issues/34
54     "test_bad_methodfunc"
55     "test_find_class"
56     "test_find_rel_links"
57     "test_iterlinks"
58     "test_make_links_absolute"
59     "test_resolve_base_href"
60     "test_rewrite_links"
61   ];
63   meta = with lib; {
64     description = "Complete lxml external type annotation";
65     homepage = "https://github.com/abelcheung/types-lxml";
66     changelog = "https://github.com/abelcheung/types-lxml/releases/tag/${version}";
67     license = licenses.asl20;
68     maintainers = with maintainers; [ fab ];
69   };