2022-08-21 13:32:41 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, mistune, cjkwrap, wcwidth
|
2021-04-26 19:14:03 +00:00
|
|
|
, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "md2gemini";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.9.1";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2022-08-21 13:32:41 +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
|
|
|
};
|
|
|
|
}
|