1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, flit-core 5, linkify-it-py 6, markdown-it-py 7, mdformat 8, mdit-py-plugins 9, pythonOlder 10}: 11 12buildPythonPackage rec { 13 pname = "mdformat-footnote"; 14 version = "0.1.1"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "executablebooks"; 21 repo = pname; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-DUCBWcmB5i6/HkqxjlU3aTRO7i0n2sj+e/doKB8ffeo="; 24 }; 25 26 nativeBuildInputs = [ 27 flit-core 28 ]; 29 30 buildInputs = [ 31 mdformat 32 mdit-py-plugins 33 ]; 34 35 pythonImportsCheck = [ 36 "mdformat_footnote" 37 ]; 38 39 meta = with lib; { 40 description = "Footnote format addition for mdformat"; 41 homepage = "https://github.com/executablebooks/mdformat-footnote"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ aldoborrero ]; 44 }; 45}