depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-mdinclude/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

41 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchpatch
, fetchPypi
, flit-core
, docutils
, mistune
, pygments
}:
buildPythonPackage rec {
pname = "sphinx-mdinclude";
version = "0.5.3";
format = "pyproject";
src = fetchPypi {
pname = "sphinx_mdinclude";
inherit version;
hash = "sha256-KZjj0YswIsmYPRtyGR/jfiX/zNVBZcvjrLIszu3ZGvQ=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ mistune docutils ];
nativeCheckInputs = [ 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 ];
};
}