diff options
Diffstat (limited to 'pkgs/development/python-modules/mdx-truly-sane-lists/default.nix')
-rw-r--r-- | pkgs/development/python-modules/mdx-truly-sane-lists/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix new file mode 100644 index 0000000000000..9ea39e27a16e3 --- /dev/null +++ b/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix @@ -0,0 +1,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 ]; + }; +} |