From 895889fffa4e6ab2be74ccdd01d0bc23615d6444 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 13 Aug 2023 13:36:48 +0100 Subject: [PATCH] yubioath-flutter.helper: relax all dependencies --- pkgs/applications/misc/yubioath-flutter/helper.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/misc/yubioath-flutter/helper.nix b/pkgs/applications/misc/yubioath-flutter/helper.nix index 77dd379b6dc8..ca0bf4472a4c 100644 --- a/pkgs/applications/misc/yubioath-flutter/helper.nix +++ b/pkgs/applications/misc/yubioath-flutter/helper.nix @@ -24,15 +24,12 @@ buildPythonApplication { python3.pkgs.pythonRelaxDepsHook ]; - pythonRelaxDeps = [ "yubikey-manager" ]; + pythonRelaxDeps = true; postPatch = '' - sed -i \ - -e 's,zxing-cpp = .*,zxing-cpp = "*",g' \ - -e 's,mss = .*,mss = "*",g' \ - -e 's,yubikey-manager = .*,yubikey-manager = "*",g' \ - -e 's,Pillow = .*,Pillow = "*",g' \ - pyproject.toml + substituteInPlace pyproject.toml \ + --replace "authenticator-helper" "yubioath-flutter-helper" \ + --replace "0.1.0" "${version}" ''; postInstall = ''