nixpkgs/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix
Dmitry Bogatov da814333e9
python3.pkgs.mdx-truly-sane-lists: init at 1.2
This is plugin for python-markdown library that is needed to build
documentation of python3.pkgs.pydantic.
2022-05-31 08:06:23 -04:00

37 lines
829 B
Nix

{ 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 ];
};
}