1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 mkdocs, 7 pandas, 8 tabulate, 9 pyyaml, 10 pytestCheckHook, 11 openpyxl, 12 mkdocs-macros-plugin, 13}: 14 15buildPythonPackage rec { 16 pname = "mkdocs-table-reader-plugin"; 17 version = "3.1.0"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "timvink"; 22 repo = "mkdocs-table-reader-plugin"; 23 tag = "v${version}"; 24 hash = "sha256-XyMz0CeLQderzzz/Z3H6rja619wPzx42X3jz30wt6a8="; 25 }; 26 27 build-system = [ 28 setuptools 29 ]; 30 31 dependencies = [ 32 mkdocs 33 pandas 34 tabulate 35 pyyaml 36 ]; 37 38 nativeCheckInputs = [ 39 pytestCheckHook 40 openpyxl 41 mkdocs-macros-plugin 42 ]; 43 44 pythonImportsCheck = [ 45 "mkdocs_table_reader_plugin" 46 ]; 47 48 disabledTests = [ 49 # fails with non zero exit code without printing stdout/stderr of `mkdocs build` -> cause unknown 50 "test_compatibility_markdownextradata" 51 "test_macros_jinja2_syntax" 52 ]; 53 54 meta = { 55 description = "MkDocs plugin that enables a markdown tag like {{ read_csv('table.csv') }} to directly insert various table formats into a page"; 56 homepage = "https://github.com/timvink/mkdocs-table-reader-plugin"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ marcel ]; 59 }; 60}