3
0
Fork 0
forked from mirrors/nixpkgs

fava: 1.23.1 -> 1.24

https://github.com/beancount/fava/releases/tag/v1.24
This commit is contained in:
kilianar 2023-02-21 23:27:06 +01:00
parent e913ad8b17
commit a6c59a5fc0
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: