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