nixpkgs/pkgs/development/python-modules/mdx-truly-sane-lists/default.nix
Alexis Hildebrandt bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00

40 lines
890 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
markdown,
python,
}:
buildPythonPackage rec {
pname = "mdx_truly_sane_lists";
version = "1.3";
src = fetchFromGitHub {
owner = "radude";
repo = "mdx_truly_sane_lists";
rev = "refs/tags/${version}";
hash = "sha256-hPnqF1UA4peW8hzeFiMlsBPfodC1qJXETGoq2yUm7d4=";
};
propagatedBuildInputs = [ markdown ];
pythonImportsCheck = [ "mdx_truly_sane_lists" ];
checkPhase = ''
runHook preCheck
${python.interpreter} mdx_truly_sane_lists/tests.py
runHook postCheck
'';
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 ];
};
}