summary refs log tree commit diff
path: root/pkgs/tools/text/m2r/default.nix
blob: f6dda712d0b98be8b3d01fd5ae274023c3c46325 (plain) (blame)
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
{ lib
, buildPythonApplication
, fetchFromGitHub
, docutils
, mistune
, pygments
}:

buildPythonApplication rec {
  pname = "m2r";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner = "miyakogi";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-JNLPEXMoiISh4RnKP+Afj9/PJp9Lrx9UYHsfuGAL7uI=";
  };

  buildInputs = [
    docutils
    mistune
    pygments
  ];

  meta = with lib; {
    homepage = "https://github.com/miyakogi/m2r";
    description = "Markdown-to-RestructuredText converter";
    license = licenses.mit;
    maintainers = with maintainers; [ AndersonTorres ];
  };
}