Merge pull request #217580 from kilianar/fava-1.24

fava: 1.23.1 -> 1.24
This commit is contained in:
Nick Cao 2023-02-22 08:45:05 +08:00 committed by GitHub
commit 00ead37162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 26 deletions

View file

@ -2,24 +2,15 @@
python3.pkgs.buildPythonApplication rec {
pname = "fava";
version = "1.23.1";
version = "1.24";
format = "pyproject";
src = python3.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-Uw8UIJa+Dtsy+o31I1ynLyhZrFNX42NFRXu1O2ISbzU=";
hash = "sha256-Ep+8O93L/CG4qcBFzCBMRasK/ySp8+cU59LcyZRTJtg=";
};
patches = [
./flask-babel.patch
];
pythonRelaxDeps = [
"cheroot"
"Flask-Babel"
];
nativeBuildInputs = with python3.pkgs; [ setuptools-scm pythonRelaxDepsHook ];
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
propagatedBuildInputs = with python3.pkgs; [
babel

View file

@ -1,14 +0,0 @@
diff --git a/src/fava/application.py b/src/fava/application.py
index 811c1de4..19de051a 100644
--- a/src/fava/application.py
+++ b/src/fava/application.py
@@ -148,8 +148,7 @@ def get_locale() -> str | None:
return request.accept_languages.best_match(["en"] + LANGUAGES)
-BABEL = Babel(app)
-BABEL.localeselector(get_locale)
+BABEL = Babel(app, locale_selector=get_locale)
for function in template_filters.FILTERS: