python313Packages.publicsuffixlist: 1.0.2.20250122 -> 1.0.2.20250124 (#376319)
[NixPkgs.git] / pkgs / development / python-modules / ttp / default.nix
blob75300b1c514a526103a99d1835e0aecbf8475134
2   lib,
3   buildPythonPackage,
4   cerberus,
5   configparser,
6   deepdiff,
7   fetchFromGitHub,
8   geoip2,
9   jinja2,
10   netmiko,
11   openpyxl,
12   pytestCheckHook,
13   poetry-core,
14   pyyaml,
15   tabulate,
16   ttp-templates,
17   yangson,
20 buildPythonPackage rec {
21   pname = "ttp";
22   version = "0.9.5";
23   format = "pyproject";
25   src = fetchFromGitHub {
26     owner = "dmulyalin";
27     repo = pname;
28     tag = version;
29     hash = "sha256-IWqPFspERBVkjsTYTAkOTOrugq4fD65Q140G3SCEV0w=";
30   };
32   nativeBuildInputs = [ poetry-core ];
34   propagatedBuildInputs = [
35     # https://github.com/dmulyalin/ttp/blob/master/docs/source/Installation.rst#additional-dependencies
36     cerberus
37     configparser
38     deepdiff
39     geoip2
40     jinja2
41     # n2g unpackaged
42     netmiko
43     # nornir unpackaged
44     openpyxl
45     tabulate
46     yangson
47   ];
49   pythonImportsCheck = [ "ttp" ];
51   nativeCheckInputs = [
52     pytestCheckHook
53     pyyaml
54     ttp-templates
55   ];
57   disabledTestPaths = [
58     # missing package n2g
59     "test/pytest/test_N2G_formatter.py"
60     # missing test file
61     "test/pytest/test_extend_tag.py"
62     "test/pytest/test_ttp_parser_methods.py"
63   ];
65   disabledTests = [
66     # data structure mismatches
67     "test_global_output_deepdiff_with_var_before"
68     "test_group_specific_output_deepdiff_with_var_before"
69     "test_group_specific_output_deepdiff_with_var_before_with_add_field"
70     "test_yangson_validate"
71     "test_yangson_validate_yang_lib_in_output_tag_data"
72     "test_yangson_validate_multiple_inputs_mode_per_input_with_yang_lib_in_file"
73     "test_yangson_validate_multiple_inputs_mode_per_template"
74     "test_yangson_validate_multiple_inputs_mode_per_input_with_yang_lib_in_file_to_xml"
75     "test_yangson_validate_multiple_inputs_mode_per_template_to_xml"
76     "test_adding_data_from_files"
77     "test_lookup_include_csv"
78     "test_inputs_with_template_base_path"
79     "test_group_inputs"
80     "test_inputs_url_filters_extensions"
81     # ValueError: dictionary update sequence element #0 has length 1; 2 is required
82     "test_include_attribute_with_yaml_loader"
83     # TypeError: string indices must be integers
84     "test_lookup_include_yaml"
85     # Missing .xslx files *shrug*
86     "test_excel_formatter_update"
87     "test_excel_formatter_update_using_result_kwargs"
88     # missing package n2g
89     "test_n2g_formatter"
90     # missing test files
91     "test_TTP_CACHE_FOLDER_env_variable_usage"
92     # requires additional network setup
93     "test_child_group_do_not_start_if_no_parent_started"
94     # Assertion Error
95     "test_in_threads_parsing"
96     # missing env var
97     "test_ttp_templates_dir_env_variable"
98   ];
100   pytestFlagsArray = [ "test/pytest" ];
102   meta = with lib; {
103     changelog = "https://github.com/dmulyalin/ttp/releases/tag/${version}";
104     description = "Template Text Parser";
105     mainProgram = "ttp";
106     homepage = "https://github.com/dmulyalin/ttp";
107     license = licenses.mit;
108     maintainers = [ ];
109   };