summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fo/formiko/package.nix
blob: cc639774d6cea3dec758c523fe3b8892ac2e60b6 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
  lib,
  python3Packages,
  fetchFromGitHub,
  wrapGAppsHook3,
  gobject-introspection,
  gtk3,
  gtksourceview4,
  gtkspell3,
  librsvg,
  webkitgtk_4_1,
}:

python3Packages.buildPythonApplication (finalAttrs: {
  pname = "formiko";
  version = "1.5.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "ondratu";
    repo = "formiko";
    tag = finalAttrs.version;
    hash = "sha256-slfpkckCvxHJ/jlBP7QAhzaf9TAcS6biDQBZcBTyTKI=";
  };

  build-system = [
    python3Packages.setuptools
  ];

  nativeBuildInputs = [
    wrapGAppsHook3
    gobject-introspection
    gtk3
  ];

  buildInputs = [
    gobject-introspection
    gtk3
    gtksourceview4
    gtkspell3
    librsvg
    webkitgtk_4_1
  ];

  dependencies = [
    python3Packages.pygobject3
    python3Packages.docutils
  ];

  # Needs a display
  doCheck = false;

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