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
|
2022-01-09 18:14:38 +00:00
|
|
|
, 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";
|
2022-06-04 00:16:40 +00:00
|
|
|
version = "2.2.3";
|
2021-03-13 15:01:36 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "rmnvgr";
|
|
|
|
repo = "metadata-cleaner";
|
|
|
|
rev = "v${version}";
|
2022-06-04 00:16:40 +00:00
|
|
|
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
|
2022-01-09 18:14:38 +00:00
|
|
|
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";
|
2022-06-04 00:16:40 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|