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