summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/md2gemini/default.nix
blob: 08a39b7fb5e906fd4cdb6b69d054e3aa11feafed (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchPypi,
  mistune,
  cjkwrap,
  wcwidth,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "md2gemini";
  version = "1.9.1";
  format = "setuptools";

  propagatedBuildInputs = [
    mistune
    cjkwrap
    wcwidth
  ];
  nativeCheckInputs = [ pytestCheckHook ];
  pythonImportsCheck = [ "md2gemini" ];

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-XreDqqzH3UQ+RIBOrvHpaBb7PXcPPptjQx5cjpI+VzQ=";
  };

  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 ];
    broken = versionAtLeast mistune.version "3";
  };
}