Loading pkgs/development/python-modules/flask-security/default.nix +2 −10 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ buildPythonPackage rec { pname = "flask-security"; version = "5.5.2"; version = "5.6.1"; pyproject = true; disabled = pythonOlder "3.9"; Loading @@ -61,19 +61,11 @@ buildPythonPackage rec { owner = "pallets-eco"; repo = "flask-security"; tag = version; hash = "sha256-RGRwgrDFe+0v8NYyajMikdoi1DQf1I+B5y8KJyF+cZs="; hash = "sha256-sAO8wQd/YgPbi5+nQmkmmcTg7DJPYdUoT/EOMUpzr/M="; }; patches = [ # https://github.com/pallets-eco/flask-security/pull/1040 ./fix_test_basic.patch ]; build-system = [ flit-core ]; # flask-login>=0.6.2 not satisfied by version 0.7.0.dev0 pythonRelaxDeps = [ "flask-login" ]; dependencies = [ email-validator flask Loading pkgs/development/python-modules/flask-security/fix_test_basic.patchdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line diff --git a/tests/test_basic.py b/tests/test_basic.py index d52be429..09dfa8e4 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -157,6 +157,8 @@ def test_authenticate_with_subdomain_next(app, client, get_message): @pytest.mark.settings(subdomain="auth") def test_authenticate_with_root_domain_next(app, client, get_message): + # As of Flask 3.1 this must be explicitly set. + app.subdomain_matching = True app.config["SERVER_NAME"] = "lp.com" app.config["SECURITY_REDIRECT_ALLOW_SUBDOMAINS"] = True data = dict(email="matt@lp.com", password="password") No newline at end of file Loading
pkgs/development/python-modules/flask-security/default.nix +2 −10 Original line number Diff line number Diff line Loading @@ -52,7 +52,7 @@ buildPythonPackage rec { pname = "flask-security"; version = "5.5.2"; version = "5.6.1"; pyproject = true; disabled = pythonOlder "3.9"; Loading @@ -61,19 +61,11 @@ buildPythonPackage rec { owner = "pallets-eco"; repo = "flask-security"; tag = version; hash = "sha256-RGRwgrDFe+0v8NYyajMikdoi1DQf1I+B5y8KJyF+cZs="; hash = "sha256-sAO8wQd/YgPbi5+nQmkmmcTg7DJPYdUoT/EOMUpzr/M="; }; patches = [ # https://github.com/pallets-eco/flask-security/pull/1040 ./fix_test_basic.patch ]; build-system = [ flit-core ]; # flask-login>=0.6.2 not satisfied by version 0.7.0.dev0 pythonRelaxDeps = [ "flask-login" ]; dependencies = [ email-validator flask Loading
pkgs/development/python-modules/flask-security/fix_test_basic.patchdeleted 100644 → 0 +0 −13 Original line number Diff line number Diff line diff --git a/tests/test_basic.py b/tests/test_basic.py index d52be429..09dfa8e4 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -157,6 +157,8 @@ def test_authenticate_with_subdomain_next(app, client, get_message): @pytest.mark.settings(subdomain="auth") def test_authenticate_with_root_domain_next(app, client, get_message): + # As of Flask 3.1 this must be explicitly set. + app.subdomain_matching = True app.config["SERVER_NAME"] = "lp.com" app.config["SECURITY_REDIRECT_ALLOW_SUBDOMAINS"] = True data = dict(email="matt@lp.com", password="password") No newline at end of file