about summary refs log tree commit diff
path: root/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix
blob: 9ea39e27a16e3245bbb7903d8f798f9aad748688 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, markdown
, python
}:

buildPythonPackage rec {
  pname = "mdx_truly_sane_lists";
  version = "1.2";

  src = fetchFromGitHub {
    owner = "radude";
    repo = "mdx_truly_sane_lists";
    rev = version;
    sha256 = "1h8403ch016cwdy5zklzp7c6xrdyyhl4z07h97qzbafrbq07jyss";
  };

  propagatedBuildInputs = [ markdown ];

  pythonImportsCheck = [ "mdx_truly_sane_lists" ];

  checkPhase = ''
    ${python.interpreter} mdx_truly_sane_lists/tests.py
  '';

  meta = with lib; {
    description = "Extension for Python-Markdown that makes lists truly sane.";
    longDescription = ''
      Features custom indents for nested lists and fix for messy linebreaks and
      paragraphs between lists.
    '';
    license = licenses.mit;
    maintainers = with maintainers; [ kaction ];
  };
}