1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fpyutils 5, pyfakefs 6, pytestCheckHook 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "md-toc"; 12 version = "8.1.5"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "frnmst"; 19 repo = pname; 20 rev = version; 21 hash = "sha256-jt2ZZV63s7LL0R9ay/tvMH3cIDElYXiNPBuHlxj/Z8E="; 22 }; 23 24 propagatedBuildInputs = [ 25 fpyutils 26 ]; 27 28 checkInputs = [ 29 pyfakefs 30 pytestCheckHook 31 ]; 32 33 pytestFlagsArray = [ 34 "md_toc/tests/*.py" 35 ]; 36 37 pythonImportsCheck = [ 38 "md_toc" 39 ]; 40 41 meta = with lib; { 42 description = "Table of contents generator for Markdown"; 43 homepage = "https://docs.franco.net.eu.org/md-toc/"; 44 license = with licenses; [ gpl3Plus ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}