From 497cc96f323f15f0e7ad82b645396dc2bd273757 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 14 Nov 2021 12:00:00 +0000 Subject: [PATCH] python3Packages.ihatemoney: unbreak with flask-wtf 1.0.0 --- pkgs/development/python-modules/ihatemoney/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/ihatemoney/default.nix b/pkgs/development/python-modules/ihatemoney/default.nix index 5d768170d806..2c535ea79b57 100644 --- a/pkgs/development/python-modules/ihatemoney/default.nix +++ b/pkgs/development/python-modules/ihatemoney/default.nix @@ -132,6 +132,13 @@ buildPythonPackage rec { debts ]; + # upstream performed the update without needing to patch the code + # the original patch does not apply, sadly + # https://github.com/spiral-project/ihatemoney/pull/912 + postPatch = '' + substituteInPlace setup.cfg --replace "Flask-WTF>=0.14.3,<1" "Flask-WTF>=0.14.3,<2" + ''; + checkInputs = [ flask_testing pytestCheckHook