1{ lib
2, fetchFromGitHub
3, meson
4, ninja
5, pkg-config
6, python3
7, gtk3
8, appstream-glib
9, desktop-file-utils
10, gobject-introspection
11, wrapGAppsHook
12, glib
13, gdk-pixbuf
14, pango
15, gettext
16, itstool
17}:
18
19python3.pkgs.buildPythonApplication rec {
20 pname = "drawing";
21 version = "1.0.2";
22
23 format = "other";
24
25 src = fetchFromGitHub {
26 owner = "maoschanz";
27 repo = pname;
28 rev = "refs/tags/${version}";
29 hash = "sha256-kNF9db8NoHWW1A0WEFQzxHqAQ4A7kxInMRZFJOXQX/k=";
30 };
31
32 nativeBuildInputs = [
33 appstream-glib
34 desktop-file-utils
35 gobject-introspection
36 meson
37 ninja
38 pkg-config
39 wrapGAppsHook
40 glib
41 gettext
42 itstool
43 ];
44
45 buildInputs = [
46 glib
47 gtk3
48 gdk-pixbuf
49 pango
50 ];
51
52 propagatedBuildInputs = with python3.pkgs; [
53 pycairo
54 pygobject3
55 ];
56
57 postPatch = ''
58 chmod +x build-aux/meson/postinstall.py # patchShebangs requires executable file
59 patchShebangs build-aux/meson/postinstall.py
60 '';
61
62 strictDeps = false;
63
64 meta = with lib; {
65 description = "A free basic image editor, similar to Microsoft Paint, but aiming at the GNOME desktop";
66 homepage = "https://maoschanz.github.io/drawing/";
67 changelog = "https://github.com/maoschanz/drawing/releases/tag/${version}";
68 maintainers = with maintainers; [ mothsart ];
69 license = licenses.gpl3Plus;
70 platforms = platforms.linux;
71 };
72}