b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ 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 ];
|
|
};
|
|
}
|