1{ lib, buildPythonPackage, fetchPypi, mistune, cjkwrap, wcwidth
2, pytestCheckHook }:
3
4buildPythonPackage rec {
5 pname = "md2gemini";
6 version = "1.9.1";
7
8 propagatedBuildInputs = [ mistune cjkwrap wcwidth ];
9 nativeCheckInputs = [ pytestCheckHook ];
10 pythonImportsCheck = [ "md2gemini" ];
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-XreDqqzH3UQ+RIBOrvHpaBb7PXcPPptjQx5cjpI+VzQ=";
15 };
16
17 meta = with lib; {
18 description = "Markdown to Gemini text format conversion library";
19 homepage = "https://github.com/makeworld-the-better-one/md2gemini";
20 license = licenses.lgpl3Plus;
21 maintainers = [ maintainers.kaction ];
22 broken = versionAtLeast mistune.version "3";
23 };
24}