blob: 7605da0975ce056c1c40718237390f7d4e170374 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
flit-core,
# dependencies
docutils,
mistune,
pygments,
sphinx,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sphinx-mdinclude";
version = "0.6.2";
pyproject = true;
src = fetchPypi {
pname = "sphinx_mdinclude";
inherit version;
hash = "sha256-RHRi6Cy4vmFASiIEIn+SB2nrkj0vV2COMyXzu4goa0w=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
docutils
mistune
pygments
sphinx
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [
flokli
JulianFP
];
};
}
|