python.pkgs.sphinx-mdinclude: init at 0.5.2

This commit is contained in:
Florian Klink 2022-08-25 11:41:03 +02:00
parent b30e2234ac
commit 74653c2289
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, flit-core
, docutils
, mistune
, pygments
}:
buildPythonPackage rec {
pname = "sphinx-mdinclude";
version = "0.5.2";
format = "flit";
src = fetchPypi {
pname = "sphinx_mdinclude";
inherit version;
hash = "sha256-F7UVe1xNrz+vCbJOCxwyJQoxfwSCORW+qu9vDH7oEPc=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ mistune docutils ];
checkInputs = [ pygments ];
meta = with lib; {
homepage = "https://github.com/miyakogi/m2r";
description = "Sphinx extension for including or writing pages in Markdown format.";
longDescription = ''
A simple Sphinx extension that enables including Markdown documents from within
reStructuredText.
It provides the .. mdinclude:: directive, and automatically converts the content of
Markdown documents to reStructuredText format.
sphinx-mdinclude is a fork of m2r and m2r2, focused only on providing a Sphinx extension.
'';
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}

View file

@ -10348,6 +10348,8 @@ in {
sphinx-navtree = callPackage ../development/python-modules/sphinx-navtree { };
sphinx-mdinclude = callPackage ../development/python-modules/sphinx-mdinclude { };
sphinx_pypi_upload = callPackage ../development/python-modules/sphinx_pypi_upload { };
sphinx-rtd-theme = callPackage ../development/python-modules/sphinx-rtd-theme { };