1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 fetchpatch,
6 markdown,
7 python,
8}:
9
10buildPythonPackage rec {
11 pname = "mdx_truly_sane_lists";
12 version = "1.3";
13
14 src = fetchFromGitHub {
15 owner = "radude";
16 repo = "mdx_truly_sane_lists";
17 rev = "refs/tags/${version}";
18 hash = "sha256-hPnqF1UA4peW8hzeFiMlsBPfodC1qJXETGoq2yUm7d4=";
19 };
20
21 propagatedBuildInputs = [ markdown ];
22
23 pythonImportsCheck = [ "mdx_truly_sane_lists" ];
24
25 checkPhase = ''
26 runHook preCheck
27 ${python.interpreter} mdx_truly_sane_lists/tests.py
28 runHook postCheck
29 '';
30
31 meta = with lib; {
32 description = "Extension for Python-Markdown that makes lists truly sane.";
33 longDescription = ''
34 Features custom indents for nested lists and fix for messy linebreaks and
35 paragraphs between lists.
36 '';
37 license = licenses.mit;
38 maintainers = with maintainers; [ kaction ];
39 };
40}