nixpkgs/pkgs/applications/misc/metadata-cleaner/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

67 lines
1.3 KiB
Nix
Raw Normal View History

2021-03-13 15:01:36 +00:00
{ lib
, python3
, fetchFromGitLab
, appstream
, desktop-file-utils
, glib
, gobject-introspection
2021-11-13 04:36:48 +00:00
, gtk4
, itstool
, libadwaita
2021-03-13 15:01:36 +00:00
, librsvg
, meson
2021-03-13 15:01:36 +00:00
, ninja
, pkg-config
, poppler_gi
2022-05-18 05:07:03 +00:00
, wrapGAppsHook4
2021-03-13 15:01:36 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "metadata-cleaner";
version = "2.5.5";
2021-03-13 15:01:36 +00:00
format = "other";
src = fetchFromGitLab {
owner = "rmnvgr";
2022-10-31 08:28:11 +00:00
repo = pname;
2021-03-13 15:01:36 +00:00
rev = "v${version}";
hash = "sha256-0DaQvVG19X9mMYZeYBz0t/DEx4MACLMjTOGMkUv9OQg=";
2021-03-13 15:01:36 +00:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
2022-10-31 08:28:11 +00:00
glib # glib-compile-resources
gtk4 # gtk4-update-icon-cache
gobject-introspection
2021-11-13 04:36:48 +00:00
itstool
meson
2021-03-13 15:01:36 +00:00
ninja
pkg-config
2022-05-18 05:07:03 +00:00
wrapGAppsHook4
2021-03-13 15:01:36 +00:00
];
buildInputs = [
2022-10-31 08:28:11 +00:00
glib
2021-11-13 04:36:48 +00:00
gtk4
libadwaita
2021-03-13 15:01:36 +00:00
librsvg
poppler_gi
];
propagatedBuildInputs = with python3.pkgs; [
mat2
pygobject3
];
meta = with lib; {
description = "Python GTK application to view and clean metadata in files, using mat2";
mainProgram = "metadata-cleaner";
2021-03-13 15:01:36 +00:00
homepage = "https://gitlab.com/rmnvgr/metadata-cleaner";
changelog = "https://gitlab.com/rmnvgr/metadata-cleaner/-/blob/${src.rev}/CHANGELOG.md";
2021-03-13 15:01:36 +00:00
license = with licenses; [ gpl3Plus cc-by-sa-40 ];
maintainers = with maintainers; [ dotlambda ];
};
}