From 3d6d095d8492c0031271882f815d11f88be549c5 Mon Sep 17 00:00:00 2001 From: gp2112 Date: Sat, 29 Jul 2023 19:17:59 -0300 Subject: [PATCH] onionshare-gui: add patch to fix qrcode --- .../applications/networking/onionshare/default.nix | 1 + .../networking/onionshare/fix-qrcode-gui.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/applications/networking/onionshare/fix-qrcode-gui.patch diff --git a/pkgs/applications/networking/onionshare/default.nix b/pkgs/applications/networking/onionshare/default.nix index 49193a384a63..df7e3283090a 100644 --- a/pkgs/applications/networking/onionshare/default.nix +++ b/pkgs/applications/networking/onionshare/default.nix @@ -124,6 +124,7 @@ rec { inherit tor meek obfs4 snowflake; inherit (tor) geoip; }) + ./fix-qrcode-gui.patch ]; disable = !isPy3k; diff --git a/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch b/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch new file mode 100644 index 000000000000..97ee3817ab68 --- /dev/null +++ b/pkgs/applications/networking/onionshare/fix-qrcode-gui.patch @@ -0,0 +1,14 @@ +diff --git desktop/onionshare/widgets.py desktop/onionshare/widgets.py +index 64a07703..bca974fb 100644 +--- desktop/onionshare/widgets.py ++++ desktop/onionshare/widgets.py +@@ -101,7 +101,7 @@ class Image(qrcode.image.base.BaseImage): + A custom Image class, for use with the QR Code pixmap. + """ + +- def __init__(self, border, width, box_size): ++ def __init__(self, border, width, box_size, *args, **kargs): + self.border = border + self.width = width + self.box_size = box_size +