Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 2.7 kB view raw
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 17}: 18 19buildPythonPackage rec { 20 pname = "ttp"; 21 version = "0.9.4"; 22 format = "pyproject"; 23 24 src = fetchFromGitHub { 25 owner = "dmulyalin"; 26 repo = pname; 27 rev = "refs/tags/${version}"; 28 hash = "sha256-iZJ38NQnofW9awisY5cFBIN1rjXinA6CpJYSCCnNaOY="; 29 }; 30 31 nativeBuildInputs = [ 32 poetry-core 33 ]; 34 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 ]; 49 50 pythonImportsCheck = [ 51 "ttp" 52 ]; 53 54 nativeCheckInputs = [ 55 pytestCheckHook 56 pyyaml 57 ttp-templates 58 ]; 59 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 "test/pytest/test_ttp_parser_methods.py" 66 ]; 67 68 disabledTests = [ 69 # data structure mismatches 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 ]; 99 100 pytestFlagsArray = [ 101 "test/pytest" 102 ]; 103 104 meta = with lib; { 105 changelog = "https://github.com/dmulyalin/ttp/releases/tag/${version}"; 106 description = "Template Text Parser"; 107 homepage = "https://github.com/dmulyalin/ttp"; 108 license = licenses.mit; 109 maintainers = with maintainers; [ hexa ]; 110 }; 111}