1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flask,
6 babel,
7 speaklater,
8 jinja2,
9 pytestCheckHook,
10 pytz,
11}:
12
13buildPythonPackage rec {
14 pname = "flask-babelex";
15 version = "0.9.4";
16 format = "setuptools";
17
18 src = fetchPypi {
19 inherit version;
20 pname = "Flask-BabelEx";
21 sha256 = "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r";
22 };
23
24 propagatedBuildInputs = [
25 flask
26 babel
27 speaklater
28 jinja2
29 ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pytz
34 ];
35
36 pytestFlagsArray = [ "tests/tests.py" ];
37
38 disabledTests = [
39 # Disabled 3 tests failing due to string representations of dates:
40 # Like "12. April 2010 um 15:46:00 MESZ" != 12. "April 2010 15:46:00 MESZ"
41 "test_init_app"
42 "test_custom_locale_selector"
43 "test_basics"
44 "test_non_initialized"
45 "test_refreshing"
46 ];
47
48 meta = with lib; {
49 description = "Adds i18n/l10n support to Flask applications";
50 homepage = "https://github.com/mrjoes/flask-babelex";
51 license = licenses.bsd3;
52 maintainers = [ ];
53 };
54}