summaryrefslogtreecommitdiff
path: root/pkgs/by-name/me/metadata-cleaner/package.nix
blob: 686ec13faded8d4e9809731146f5ed91d17881d0 (about) (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
  lib,
  python3,
  fetchFromGitLab,
  appstream,
  desktop-file-utils,
  glib,
  gobject-introspection,
  gtk4,
  itstool,
  libadwaita,
  librsvg,
  meson,
  ninja,
  nix-update-script,
  pkg-config,
  poppler_gi,
  wrapGAppsHook4,
}:

python3.pkgs.buildPythonApplication rec {
  pname = "metadata-cleaner";
  version = "2.5.6";
  pyproject = false;

  src = fetchFromGitLab {
    owner = "rmnvgr";
    repo = "metadata-cleaner";
    tag = "v${version}";
    hash = "sha256-J+nwgLbAFoh1gq3J4cqQEShZJCSZesyCjT9DfkCWIHs=";
  };

  nativeBuildInputs = [
    appstream
    desktop-file-utils
    glib # glib-compile-resources
    gtk4 # gtk4-update-icon-cache
    gobject-introspection
    itstool
    meson
    ninja
    pkg-config
    wrapGAppsHook4
  ];

  buildInputs = [
    glib
    gtk4
    libadwaita
    librsvg
    poppler_gi
  ];

  dependencies = with python3.pkgs; [
    mat2
    pygobject3
  ];

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Python GTK application to view and clean metadata in files, using mat2";
    mainProgram = "metadata-cleaner";
    homepage = "https://gitlab.com/rmnvgr/metadata-cleaner";
    changelog = "https://gitlab.com/rmnvgr/metadata-cleaner/-/blob/v${version}/CHANGELOG.md";
    license = with lib.licenses; [
      gpl3Plus
      cc-by-sa-40
    ];
    maintainers = with lib.maintainers; [ dotlambda ];
  };
}