mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
bf995e3641
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
40 lines
890 B
Nix
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 ];
|
|
};
|
|
}
|