about summary refs log tree commit diff
path: root/pkgs/applications/editors/formiko/default.nix
blob: 40c7fba0be82e4140ab9f906870fa6b0790d35eb (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{ lib
, buildPythonApplication
, fetchFromGitHub
, wrapGAppsHook3
, gobject-introspection
, gtk3
, docutils
, gtksourceview
, gtkspell3
, librsvg
, pygobject3
, webkitgtk
}:

buildPythonApplication rec {
  pname = "formiko";
  version = "1.4.3";

  src = fetchFromGitHub {
    owner = "ondratu";
    repo = "formiko";
    rev = version;
    sha256 = "0n7w585gbrpn2xcd5n04hivrjarpr2wj260y2kpxpgh93vn52sdi";
  };

  nativeBuildInputs = [
    wrapGAppsHook3
    gobject-introspection
    gtk3
  ];
  propagatedBuildInputs = [
    docutils
    gobject-introspection
    gtk3
    gtksourceview
    gtkspell3
    librsvg
    pygobject3
    webkitgtk
  ];

  # Needs a display
  doCheck = false;

  meta = with lib; {
    description = "reStructuredText editor and live previewer";
    homepage = "https://github.com/ondratu/formiko";
    license = licenses.bsd3;
    maintainers = with maintainers; [ shamilton ];
    platforms = platforms.linux;
  };
}