1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 flit-core, 6 mdformat, 7 mdformat-gfm, 8 mdit-py-plugins, 9 more-itertools, 10 pythonOlder, 11 pytest-snapshot, 12 pytestCheckHook, 13}: 14 15buildPythonPackage rec { 16 pname = "mdformat-mkdocs"; 17 version = "4.1.2"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "KyleKing"; 24 repo = "mdformat-mkdocs"; 25 tag = "v${version}"; 26 hash = "sha256-+2w7UrOPSCUDc6jnLAW0/njq+aJ4y+H8n7gshxLj8/Q="; 27 }; 28 29 nativeBuildInputs = [ flit-core ]; 30 31 propagatedBuildInputs = [ 32 mdformat 33 mdformat-gfm 34 mdit-py-plugins 35 more-itertools 36 ]; 37 38 nativeCheckInputs = [ 39 pytest-snapshot 40 pytestCheckHook 41 ]; 42 43 disabledTestPaths = [ 44 # AssertionError: assert ParsedText(lines=[LineResult(parsed=ParsedLine(line_... 45 "tests/format/test_parsed_result.py" 46 ]; 47 48 pythonImportsCheck = [ "mdformat_mkdocs" ]; 49 50 meta = with lib; { 51 description = "Mdformat plugin for MkDocs"; 52 homepage = "https://github.com/KyleKing/mdformat-mkdocs"; 53 changelog = "https://github.com/KyleKing/mdformat-mkdocs/releases/tag/${src.tag}"; 54 license = licenses.mit; 55 maintainers = with maintainers; [ aldoborrero ]; 56 }; 57}