about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/graphics/conjure/default.nix
blob: 634cf7132b1d51beb7235be44e5e1738e0d41522 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ fetchFromGitHub
, gobject-introspection
, lib
, libadwaita
, python3Packages
, wrapGAppsHook
, meson
, ninja
, desktop-file-utils
, pkg-config
, appstream-glib
, gtk4
}:
python3Packages.buildPythonApplication rec {
  pname = "conjure";
  version = "0.1.2";

  format = "other";

  src = fetchFromGitHub {
    owner = "nate-xyz";
    repo = "conjure";
    rev = "v${version}";
    hash = "sha256-qWeqUQxTTnmJt40Jm1qDTGGuSQikkurzOux8sZsmDQk=";
  };

  nativeBuildInputs = [
    gobject-introspection
    wrapGAppsHook
    desktop-file-utils
    appstream-glib
    meson
    ninja
    pkg-config
    gtk4
  ];

  buildInputs = [
    libadwaita
  ];

  propagatedBuildInputs = with python3Packages; [
    pygobject3
    loguru
    wand
  ];

  nativeCheckInputs = with python3Packages; [
    pytest
  ];

  dontWrapGApps = true;

  preFixup = ''
    makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
  '';

  meta = with lib; {
    description = "Magically transform your images";
    mainProgram = "conjure";
    longDescription = ''
      Resize, crop, rotate, flip images, apply various filters and effects,
      adjust levels and brightness, and much more. An intuitive tool for designers,
      artists, or just someone who wants to enhance their images.
      Built on top of the popular image processing library, ImageMagick with python
      bindings from Wand.
    '';
    homepage = "https://github.com/nate-xyz/conjure";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ sund3RRR ];
  };
}