Merge pull request #211654 from mweinelt/one-flask-babel-is-enough
python3Packages.flask-babel: 2.0.0 -> 3.0.0
This commit is contained in:
commit
996e5a71c5
7 changed files with 53 additions and 51 deletions
|
@ -20,7 +20,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||
cheroot
|
||||
click
|
||||
flask
|
||||
flaskbabel
|
||||
flask-babel
|
||||
jaraco_functools
|
||||
jinja2
|
||||
markdown2
|
||||
|
|
|
@ -1,34 +1,66 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, unittestCheckHook
|
||||
, fetchPypi
|
||||
, flask
|
||||
, fetchFromGitHub
|
||||
|
||||
# build-system
|
||||
, poetry-core
|
||||
|
||||
# docs
|
||||
, furo
|
||||
, sphinxHook
|
||||
|
||||
# runtime
|
||||
, babel
|
||||
, flask
|
||||
, jinja2
|
||||
, pytz
|
||||
, speaklater
|
||||
|
||||
# tests
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Babel";
|
||||
version = "2.0.0";
|
||||
pname = "flask-babel";
|
||||
version = "3.0.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f9faf45cdb2e1a32ea2ec14403587d4295108f35017a7821a2b1acb8cfd9257d";
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-babel";
|
||||
repo = "flask-babel";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-c3QKAnyMe1THHuJ3uB2d0jMMo1SYGRAB9mBpIJSAHw0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
flask
|
||||
babel
|
||||
jinja2
|
||||
pytz
|
||||
speaklater
|
||||
outputs = [
|
||||
"out"
|
||||
"doc"
|
||||
];
|
||||
|
||||
unittestFlagsArray = [ "-s" "tests" ];
|
||||
nativeBuildInputs = [
|
||||
furo
|
||||
poetry-core
|
||||
sphinxHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
babel
|
||||
flask
|
||||
jinja2
|
||||
pytz
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"flask_babel"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/python-babel/flask-babel/releases/tag/v${version}";
|
||||
description = "Adds i18n/l10n support to Flask applications";
|
||||
longDescription = ''
|
||||
Implements i18n and l10n support for Flask.
|
||||
|
@ -36,7 +68,7 @@ buildPythonPackage rec {
|
|||
installed automatically for you if you install this library.
|
||||
'';
|
||||
license = licenses.bsd2;
|
||||
maintainers = teams.sage.members;
|
||||
maintainers = teams.sage.members ++ (with maintainers; [ matejc ]);
|
||||
homepage = "https://github.com/python-babel/flask-babel";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -1,29 +0,0 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, flask
|
||||
, jinja2
|
||||
, speaklater
|
||||
, babel
|
||||
, pytz
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Flask-Babel";
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "f9faf45cdb2e1a32ea2ec14403587d4295108f35017a7821a2b1acb8cfd9257d";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ flask jinja2 speaklater babel pytz ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Adds i18n/l10n support to Flask applications";
|
||||
homepage = "https://github.com/mitsuhiko/flask-babel";
|
||||
license = licenses.bsd0;
|
||||
maintainers = with maintainers; [ matejc ];
|
||||
};
|
||||
|
||||
}
|
|
@ -27,7 +27,7 @@ toPythonModule (buildPythonApplication rec {
|
|||
certifi
|
||||
python-dateutil
|
||||
flask
|
||||
flaskbabel
|
||||
flask-babel
|
||||
gevent
|
||||
grequests
|
||||
jinja2
|
||||
|
|
|
@ -27,7 +27,7 @@ python3.pkgs.buildPythonApplication rec {
|
|||
certifi
|
||||
python-dateutil
|
||||
flask
|
||||
flaskbabel
|
||||
flask-babel
|
||||
brotli
|
||||
jinja2
|
||||
langdetect
|
||||
|
|
|
@ -82,6 +82,7 @@ mapAliases ({
|
|||
fake_factory = throw "fake_factory has been removed because it is unused and deprecated by upstream since 2016."; # added 2022-05-30
|
||||
faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
|
||||
filemagic = throw "inactive since 2014, so use python-magic instead"; # added 2022-11-19
|
||||
flaskbabel = flask-babel; # added 2023-01-19
|
||||
flask_login = flask-login; # added 2022-10-17
|
||||
flask_sqlalchemy = flask-sqlalchemy; # added 2022-07-20
|
||||
flask_testing = flask-testing; # added 2022-04-25
|
||||
|
|
|
@ -3396,8 +3396,6 @@ self: super: with self; {
|
|||
|
||||
flask-babel = callPackage ../development/python-modules/flask-babel { };
|
||||
|
||||
flaskbabel = callPackage ../development/python-modules/flaskbabel { };
|
||||
|
||||
flask-babelex = callPackage ../development/python-modules/flask-babelex { };
|
||||
|
||||
flask-basicauth = callPackage ../development/python-modules/flask-basicauth { };
|
||||
|
|
Loading…
Reference in a new issue