1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5
6 # build-system
7 flit-core,
8
9 # dependencies
10 docutils,
11 mistune,
12 pygments,
13 sphinx,
14
15 # tests
16 pytestCheckHook,
17}:
18
19buildPythonPackage rec {
20 pname = "sphinx-mdinclude";
21 version = "0.6.2";
22 format = "pyproject";
23
24 src = fetchPypi {
25 pname = "sphinx_mdinclude";
26 inherit version;
27 hash = "sha256-RHRi6Cy4vmFASiIEIn+SB2nrkj0vV2COMyXzu4goa0w=";
28 };
29
30 nativeBuildInputs = [ flit-core ];
31
32 propagatedBuildInputs = [
33 docutils
34 mistune
35 pygments
36 sphinx
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 meta = with lib; {
42 homepage = "https://github.com/omnilib/sphinx-mdinclude";
43 changelog = "https://github.com/omnilib/sphinx-mdinclude/blob/v${version}/CHANGELOG.md";
44 description = "Sphinx extension for including or writing pages in Markdown format";
45 longDescription = ''
46 A simple Sphinx extension that enables including Markdown documents from within
47 reStructuredText.
48 It provides the .. mdinclude:: directive, and automatically converts the content of
49 Markdown documents to reStructuredText format.
50
51 sphinx-mdinclude is a fork of m2r and m2r2, focused only on providing a Sphinx extension.
52 '';
53 license = licenses.mit;
54 maintainers = with maintainers; [
55 flokli
56 JulianFP
57 ];
58 };
59}