1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fetchpatch
5
6# build-system
7, poetry-core
8
9# docs
10, furo
11, sphinxHook
12
13# runtime
14, babel
15, flask
16, jinja2
17, pytz
18
19# tests
20, pytest-mock
21, pytestCheckHook
22}:
23
24buildPythonPackage rec {
25 pname = "flask-babel";
26 version = "3.1.0";
27 format = "pyproject";
28
29 src = fetchFromGitHub {
30 owner = "python-babel";
31 repo = "flask-babel";
32 rev = "refs/tags/v${version}";
33 hash = "sha256-KoTHBrGD6M3rkXoxUadRXhroRUbWKaL/rE6Rd2mxw4c=";
34 };
35
36 outputs = [
37 "out"
38 "doc"
39 ];
40
41 nativeBuildInputs = [
42 furo
43 poetry-core
44 sphinxHook
45 ];
46
47 propagatedBuildInputs = [
48 babel
49 flask
50 jinja2
51 pytz
52 ];
53
54 pythonImportsCheck = [
55 "flask_babel"
56 ];
57
58 checkInputs = [
59 pytest-mock
60 pytestCheckHook
61 ];
62
63 meta = with lib; {
64 changelog = "https://github.com/python-babel/flask-babel/releases/tag/v${version}";
65 description = "Adds i18n/l10n support to Flask applications";
66 longDescription = ''
67 Implements i18n and l10n support for Flask.
68 This is based on the Python babel module as well as pytz both of which are
69 installed automatically for you if you install this library.
70 '';
71 license = licenses.bsd2;
72 maintainers = teams.sage.members ++ (with maintainers; [ matejc ]);
73 homepage = "https://github.com/python-babel/flask-babel";
74 };
75}