Skip to content

Commit

Permalink
python3Packages.flask-babel: 2.0.0 -> 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jan 19, 2023
1 parent 5fb9ccb commit 6d10040
Showing 1 changed file with 44 additions and 12 deletions.
56 changes: 44 additions & 12 deletions pkgs/development/python-modules/flask-babel/default.nix
Original file line number Diff line number Diff line change
@@ -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=";
};

outputs = [
"out"
"doc"
];

nativeBuildInputs = [
furo
poetry-core
sphinxHook
];

propagatedBuildInputs = [
flask
babel
flask
jinja2
pytz
speaklater
];

unittestFlagsArray = [ "-s" "tests" ];
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.
Expand Down

0 comments on commit 6d10040

Please sign in to comment.