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.

65 lines
1.2 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.2.3";
2021-03-13 15:01:36 +00:00
format = "other";
src = fetchFromGitLab {
owner = "rmnvgr";
repo = "metadata-cleaner";
rev = "v${version}";
hash = "sha256-ykJd1ZjAqT8OtJsZiSjbDdkN5fFlQcWtTO88x3zAfU8=";
2021-03-13 15:01:36 +00:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
glib
2021-11-13 04:36:48 +00:00
gtk4
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 = [
gobject-introspection
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";
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 ];
};
}