1{
2 lib,
3 buildPythonApplication,
4 fetchFromGitHub,
5 wrapGAppsHook3,
6 gobject-introspection,
7 gtk3,
8 docutils,
9 gtksourceview,
10 gtkspell3,
11 librsvg,
12 pygobject3,
13 webkitgtk_4_1,
14}:
15
16buildPythonApplication rec {
17 pname = "formiko";
18 version = "1.5.0";
19 format = "setuptools";
20
21 src = fetchFromGitHub {
22 owner = "ondratu";
23 repo = "formiko";
24 tag = version;
25 sha256 = "sha256-slfpkckCvxHJ/jlBP7QAhzaf9TAcS6biDQBZcBTyTKI=";
26 };
27
28 nativeBuildInputs = [
29 wrapGAppsHook3
30 gobject-introspection
31 gtk3
32 ];
33 propagatedBuildInputs = [
34 docutils
35 gobject-introspection
36 gtk3
37 gtksourceview
38 gtkspell3
39 librsvg
40 pygobject3
41 webkitgtk_4_1
42 ];
43
44 # Needs a display
45 doCheck = false;
46
47 meta = with lib; {
48 description = "reStructuredText editor and live previewer";
49 homepage = "https://github.com/ondratu/formiko";
50 license = licenses.bsd3;
51 maintainers = with maintainers; [ shamilton ];
52 platforms = platforms.linux;
53 };
54}