1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, linkify-it-py 6, markdown-it-py 7, mdformat 8, mdit-py-plugins 9, ruamel-yaml 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "mdformat-frontmatter"; 15 version = "2.0.8"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "butler54"; 22 repo = "mdformat-frontmatter"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-2heQw8LL/ILY36oItBeQq33qjVBGT51qGG4CcCEDutA="; 25 }; 26 27 nativeBuildInputs = [ 28 flit-core 29 ]; 30 31 buildInputs = [ 32 mdformat 33 mdit-py-plugins 34 ]; 35 36 propagatedBuildInputs = [ 37 ruamel-yaml 38 ]; 39 40 pythonImportsCheck = [ 41 "mdformat_frontmatter" 42 ]; 43 44 meta = with lib; { 45 description = "mdformat plugin to ensure frontmatter is respected"; 46 homepage = "https://github.com/butler54/mdformat-frontmatter"; 47 changelog = "https://github.com/butler54/mdformat-frontmatter/blob/v{version}/CHANGELOG.md"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ aldoborrero polarmutex ]; 50 }; 51}