Merge pull request #217580 from kilianar/fava-1.24
fava: 1.23.1 -> 1.24
This commit is contained in:
commit
00ead37162
|
@ -2,24 +2,15 @@
|
||||||
|
|
||||||
python3.pkgs.buildPythonApplication rec {
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "fava";
|
pname = "fava";
|
||||||
version = "1.23.1";
|
version = "1.24";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = python3.pkgs.fetchPypi {
|
src = python3.pkgs.fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-Uw8UIJa+Dtsy+o31I1ynLyhZrFNX42NFRXu1O2ISbzU=";
|
hash = "sha256-Ep+8O93L/CG4qcBFzCBMRasK/ySp8+cU59LcyZRTJtg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
nativeBuildInputs = with python3.pkgs; [ setuptools-scm ];
|
||||||
./flask-babel.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
|
||||||
"cheroot"
|
|
||||||
"Flask-Babel"
|
|
||||||
];
|
|
||||||
|
|
||||||
nativeBuildInputs = with python3.pkgs; [ setuptools-scm pythonRelaxDepsHook ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = with python3.pkgs; [
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
babel
|
babel
|
||||||
|
|
|
@ -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:
|
|
Loading…
Reference in a new issue