2022-09-09 14:08:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
|
|
|
, flit-core
|
|
|
|
, docutils
|
|
|
|
, mistune
|
|
|
|
, pygments
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-mdinclude";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "0.5.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "sphinx_mdinclude";
|
|
|
|
inherit version;
|
2023-01-20 10:41:00 +00:00
|
|
|
hash = "sha256-KZjj0YswIsmYPRtyGR/jfiX/zNVBZcvjrLIszu3ZGvQ=";
|
2022-09-09 14:08:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [ mistune docutils ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pygments ];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|