1{ lib 2, buildPythonPackage 3, fetchpatch 4, fetchPypi 5, flit-core 6, docutils 7, mistune 8, pygments 9}: 10 11buildPythonPackage rec { 12 pname = "sphinx-mdinclude"; 13 version = "0.5.2"; 14 format = "flit"; 15 16 src = fetchPypi { 17 pname = "sphinx_mdinclude"; 18 inherit version; 19 hash = "sha256-F7UVe1xNrz+vCbJOCxwyJQoxfwSCORW+qu9vDH7oEPc="; 20 }; 21 22 nativeBuildInputs = [ flit-core ]; 23 propagatedBuildInputs = [ mistune docutils ]; 24 25 checkInputs = [ pygments ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/miyakogi/m2r"; 29 description = "Sphinx extension for including or writing pages in Markdown format."; 30 longDescription = '' 31 A simple Sphinx extension that enables including Markdown documents from within 32 reStructuredText. 33 It provides the .. mdinclude:: directive, and automatically converts the content of 34 Markdown documents to reStructuredText format. 35 36 sphinx-mdinclude is a fork of m2r and m2r2, focused only on providing a Sphinx extension. 37 ''; 38 license = licenses.mit; 39 maintainers = with maintainers; [ flokli ]; 40 }; 41}