Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: gnome-pass-search-provider-1.0.0
Date: Sat, 16 Oct 2021 23:12:16 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33593@inbox.vuxu.org> (raw)

[-- 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
+}

             reply	other threads:[~2021-10-16 21:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-16 21:12 paper42 [this message]
2021-10-17 22:31 ` [PR PATCH] [Merged]: " paper42

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-33593@inbox.vuxu.org \
    --to=paper42@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).