2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
mistune,
|
|
|
|
cjkwrap,
|
|
|
|
wcwidth,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "md2gemini";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.9.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
mistune
|
|
|
|
cjkwrap
|
|
|
|
wcwidth
|
|
|
|
];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-04-26 19:14:03 +00:00
|
|
|
pythonImportsCheck = [ "md2gemini" ];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-XreDqqzH3UQ+RIBOrvHpaBb7PXcPPptjQx5cjpI+VzQ=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Markdown to Gemini text format conversion library";
|
|
|
|
homepage = "https://github.com/makeworld-the-better-one/md2gemini";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = [ maintainers.kaction ];
|
2023-10-09 19:29:22 +00:00
|
|
|
broken = versionAtLeast mistune.version "3";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|