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

64 lines
1.1 KiB
Nix
Raw Normal View History

2021-03-13 16:01:36 +01:00
{ lib
, python3
, fetchFromGitLab
, appstream
, desktop-file-utils
, glib
, gobject-introspection
2021-11-13 05:36:48 +01:00
, gtk4
, itstool
, libadwaita
2021-03-13 16:01:36 +01:00
, librsvg
, meson
2021-03-13 16:01:36 +01:00
, ninja
, pkg-config
, poppler_gi
, wrapGAppsHook
}:
python3.pkgs.buildPythonApplication rec {
pname = "metadata-cleaner";
2022-01-16 02:23:24 +01:00
version = "2.1.4";
2021-03-13 16:01:36 +01:00
format = "other";
src = fetchFromGitLab {
owner = "rmnvgr";
repo = "metadata-cleaner";
rev = "v${version}";
2022-01-16 02:23:24 +01:00
hash = "sha256-46J0iLXzZX5tww4CK8WhrADql023rauO0fpW7Asn5ZY=";
2021-03-13 16:01:36 +01:00
};
nativeBuildInputs = [
appstream
desktop-file-utils
glib
2021-11-13 05:36:48 +01:00
gtk4
itstool
meson
2021-03-13 16:01:36 +01:00
ninja
pkg-config
wrapGAppsHook
];
buildInputs = [
gobject-introspection
2021-11-13 05:36:48 +01:00
gtk4
libadwaita
2021-03-13 16:01:36 +01: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";
license = with licenses; [ gpl3Plus cc-by-sa-40 ];
maintainers = with maintainers; [ dotlambda ];
};
}