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