From e84a1c5c01682dbd3f3323c97ea85b09b470a344 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Lang?= Date: Sun, 9 Aug 2020 17:35:03 -0300 Subject: [PATCH] pythonPackages.flask_assets: fix tests The changes in https://github.com/pallets/flask/pull/3456/commits/e6178fe489b7828acc2bb8fd4b56a70b11ab6c6a introduced in Flask 1.1.2 broke the tests of flask-assets. --- pkgs/development/python-modules/flask-assets/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/flask-assets/default.nix b/pkgs/development/python-modules/flask-assets/default.nix index 12a295ca65a..390657e9c82 100644 --- a/pkgs/development/python-modules/flask-assets/default.nix +++ b/pkgs/development/python-modules/flask-assets/default.nix @@ -11,6 +11,8 @@ buildPythonPackage rec { patchPhase = '' substituteInPlace tests/test_integration.py --replace 'static_path=' 'static_url_path=' + substituteInPlace tests/test_integration.py --replace "static_folder = '/'" "static_folder = '/x'" + substituteInPlace tests/test_integration.py --replace "'/foo'" "'/x/foo'" ''; propagatedBuildInputs = [ flask webassets flask_script nose ];