1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, linkify-it-py 5, markdown-it-py 6, mdformat 7, mdformat-tables 8, mdit-py-plugins 9, poetry-core 10, pytestCheckHook 11, pythonOlder 12}: 13 14buildPythonPackage rec { 15 pname = "mdformat-gfm"; 16 version = "0.3.5"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "hukkin"; 23 repo = pname; 24 rev = "refs/tags/${version}"; 25 hash = "sha256-7sIa50jCN+M36Y0C05QaAL+TVwLzKxJ0gzpZI1YQFxg="; 26 }; 27 28 nativeBuildInputs = [ 29 poetry-core 30 ]; 31 32 buildInputs = [ 33 mdformat 34 markdown-it-py 35 mdit-py-plugins 36 ]; 37 38 propagatedBuildInputs = [ 39 mdformat-tables 40 linkify-it-py 41 ]; 42 43 nativeCheckInputs = [ 44 pytestCheckHook 45 ]; 46 47 disabledTests = [ 48 "test_default_style__api" 49 "test_default_style__cli" 50 ]; 51 52 pythonImportsCheck = [ 53 "mdformat_gfm" 54 ]; 55 56 meta = with lib; { 57 description = "Mdformat plugin for GitHub Flavored Markdown compatibility"; 58 homepage = "https://github.com/hukkin/mdformat-gfm"; 59 license = licenses.mit; 60 maintainers = with maintainers; [ aldoborrero polarmutex ]; 61 }; 62}