python3Packages.mat2: 0.12.1 -> 0.12.2

https://0xacab.org/jvoisin/mat2/-/blob/0.12.2/CHANGELOG.md
This commit is contained in:
Robert Schütz 2021-09-16 08:59:43 -07:00 committed by Jonathan Ringer
parent f77b7736b3
commit 03a1cf3674
2 changed files with 8 additions and 18 deletions

View File

@ -22,7 +22,7 @@
buildPythonPackage rec {
pname = "mat2";
version = "0.12.1";
version = "0.12.2";
disabled = pythonOlder "3.5";
@ -31,7 +31,7 @@ buildPythonPackage rec {
owner = "jvoisin";
repo = "mat2";
rev = version;
sha256 = "sha256-TxHelOr7ygp4R+dW+oJ034l2w9zrB4gn0QLs5Pa4EFE=";
sha256 = "sha256-KaHdBmTeBlCRaVkG3WsfDtFo45s/X69x7VGDYY7W5O8=";
};
patches = [
@ -50,18 +50,6 @@ buildPythonPackage rec {
./executable-name.patch
# hardcode path to mat2 executable
./tests.patch
# remove for next release
(fetchpatch {
name = "fix-tests-ffmpeg-4.4.patch";
url = "https://0xacab.org/jvoisin/mat2/-/commit/c9be50f968212b01f8d8ad85e59e19c3e67d8578.patch";
sha256 = "0895dkv6575ps3drdfnli15cggx27n9irjx0axigrm4ql4ma0648";
})
# fix white space error in the tests for exiftool, remove for next release
(fetchpatch {
name = "fix-tests-exiftool.patch";
url = "https://0xacab.org/jvoisin/mat2/-/commit/6df615281b2a649b85ff7670f6d87d3beed0b977.patch";
sha256 = "1gix63n0mzavnqjq5ll0v210z4vdz4f93aq03bfzlgifxcd9vl1x";
})
];
postPatch = ''

View File

@ -1,15 +1,17 @@
diff --git a/dolphin/mat2.desktop b/dolphin/mat2.desktop
index e623962..5d69ae2 100644
index d365bc5..56313e2 100644
--- a/dolphin/mat2.desktop
+++ b/dolphin/mat2.desktop
@@ -7,5 +7,5 @@ Type=Service
[Desktop Action cleanMetadata]
@@ -8,6 +8,6 @@ Type=Service
Name=Clean metadata
Name[de]=Metadaten löschen
Name[es]=Limpiar metadatos
-Icon=/usr/share/icons/hicolor/scalable/apps/mat2.svg
-Exec=kdialog --yesno "$( mat2 -s %U )" --title "Clean Metadata?" && mat2 %U
-Exec[de]=kdialog --yesno "$( mat2 -s %U )" --title "Metadaten löschen?" && mat2 %U
+Icon=@mat2svg@
+Exec=@kdialog@ --yesno "$( @mat2@ -s %U )" --title "Clean Metadata?" && @mat2@ %U
+Exec=@kdialog@ --yesno "$( mat2 -s %U )" --title "Clean Metadata?" && mat2 %U
+Exec[de]=@kdialog@ --yesno "$( mat2 -s %U )" --title "Metadaten löschen?" && mat2 %U
diff --git a/libmat2/bubblewrap.py b/libmat2/bubblewrap.py
index 970d5dd..5d3c0b7 100644
--- a/libmat2/bubblewrap.py