depot/third_party/nixpkgs/pkgs/development/python-modules/sphinx-mdinclude/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

55 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
flit-core,
# dependencies
docutils,
mistune,
pygments,
# tests
pytestCheckHook,
}:
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 = [
docutils
mistune
pygments
];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
broken = true; # https://github.com/omnilib/sphinx-mdinclude/issues/22
homepage = "https://github.com/omnilib/sphinx-mdinclude";
changelog = "https://github.com/omnilib/sphinx-mdinclude/blob/v${version}/CHANGELOG.md";
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 ];
};
}