[-- Attachment #1: Type: text/plain, Size: 957 bytes --]
There is a new pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages gnome-pass-search-provider
https://github.com/void-linux/void-packages/pull/33593
New package: gnome-pass-search-provider-1.0.0
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
fuzzywuzzy dependency was renamed to thefuzz, so I packaged thefuzz and added an upstream patch to fix gnome-pass-search-provider
A patch file from https://github.com/void-linux/void-packages/pull/33593.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gnome-pass-search-provider-33593.patch --]
[-- Type: text/x-diff, Size: 3361 bytes --]
From 527f837c97f5aade15e835b1365411d4540f8ca2 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 16 Oct 2021 01:10:57 +0200
Subject: [PATCH 1/2] New package: python3-thefuzz-0.19.0
---
srcpkgs/python3-thefuzz/template | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 srcpkgs/python3-thefuzz/template
diff --git a/srcpkgs/python3-thefuzz/template b/srcpkgs/python3-thefuzz/template
new file mode 100644
index 000000000000..30c936169ac9
--- /dev/null
+++ b/srcpkgs/python3-thefuzz/template
@@ -0,0 +1,15 @@
+# Template file for 'python3-thefuzz'
+pkgname=python3-thefuzz
+version=0.19.0
+revision=1
+wrksrc="thefuzz-$version"
+build_style=python3-module
+hostmakedepends="python3-setuptools"
+depends="python3-Levenshtein"
+checkdepends="python3-pytest $depends python3-hypothesis python3-pycodestyle"
+short_desc="Fuzzy String Matching in Python"
+maintainer="Michal Vasilek <michal@vasilek.cz>"
+license="GPL-2.0-only"
+homepage="https://github.com/seatgeek/thefuzz"
+distfiles="https://github.com/seatgeek/thefuzz/archive/refs/tags/$version.tar.gz"
+checksum=0804e9c02a50b8bdfe94f043fb09defa8cf81400105812a556c477d823683d2e
From f80b438c50d4d9b2c4388f1303c2a43e7de1e05e Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Thu, 30 Sep 2021 07:59:55 +0200
Subject: [PATCH 2/2] New package: gnome-pass-search-provider-1.0.0
---
.../patches/thefuzz.patch | 14 ++++++++++++++
srcpkgs/gnome-pass-search-provider/template | 19 +++++++++++++++++++
2 files changed, 33 insertions(+)
create mode 100644 srcpkgs/gnome-pass-search-provider/patches/thefuzz.patch
create mode 100644 srcpkgs/gnome-pass-search-provider/template
diff --git a/srcpkgs/gnome-pass-search-provider/patches/thefuzz.patch b/srcpkgs/gnome-pass-search-provider/patches/thefuzz.patch
new file mode 100644
index 000000000000..359f45832a91
--- /dev/null
+++ b/srcpkgs/gnome-pass-search-provider/patches/thefuzz.patch
@@ -0,0 +1,14 @@
+--- a/gnome-pass-search-provider.py
++++ b/gnome-pass-search-provider.py
+@@ -31,7 +31,10 @@ import re
+ import subprocess
+
+ from dbus.mainloop.glib import DBusGMainLoop
+-from fuzzywuzzy import process, fuzz
++try:
++ from thefuzz import fuzz, process
++except ModuleNotFoundError:
++ from fuzzywuzzy import fuzz, process
+ from gi.repository import GLib
+ from os import getenv, walk
+ from os.path import expanduser, join as path_join
diff --git a/srcpkgs/gnome-pass-search-provider/template b/srcpkgs/gnome-pass-search-provider/template
new file mode 100644
index 000000000000..76bb43b89926
--- /dev/null
+++ b/srcpkgs/gnome-pass-search-provider/template
@@ -0,0 +1,19 @@
+# Template file for 'gnome-pass-search-provider'
+pkgname=gnome-pass-search-provider
+version=1.0.0
+revision=1
+depends="python3-gobject python3-dbus python3-thefuzz pass GPaste"
+short_desc="Pass password manager search provider for gnome-shell"
+maintainer="Michal Vasilek <michal@vasilek.cz>"
+license="GPL-3.0-or-later"
+homepage="https://github.com/jle64/gnome-pass-search-provider"
+distfiles="https://github.com/jle64/gnome-pass-search-provider/archive/refs/tags/$version.tar.gz"
+checksum=cb6eb6bf1626a8bbc1b5dca71776e1ea855e14066c4fe07f8fe612334b7a59ea
+
+do_build() {
+ :
+}
+
+do_install() {
+ DATADIR="$DESTDIR/usr/share" LIBDIR="$DESTDIR/usr/lib/" ./install.sh
+}