python312Packages.mdx-truly-sane-lists: refactor (#369858)
This commit is contained in:
@@ -2,13 +2,15 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
markdown,
|
||||
python,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mdx_truly_sane_lists";
|
||||
pname = "mdx-truly-sane-lists";
|
||||
version = "1.3";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "radude";
|
||||
@@ -17,23 +19,23 @@ buildPythonPackage rec {
|
||||
hash = "sha256-hPnqF1UA4peW8hzeFiMlsBPfodC1qJXETGoq2yUm7d4=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ markdown ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ markdown ];
|
||||
|
||||
pythonImportsCheck = [ "mdx_truly_sane_lists" ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
${python.interpreter} mdx_truly_sane_lists/tests.py
|
||||
runHook postCheck
|
||||
'';
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
pytestFlagsArray = [ "mdx_truly_sane_lists/tests.py" ];
|
||||
|
||||
meta = {
|
||||
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 ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ kaction ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user