ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / flask-babelex / default.nix
blob4a7294540e121f12d66e19495d5307fbd8df978b
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , flask
5 , babel
6 , speaklater
7 , jinja2
8 , pytest
9 }:
11 buildPythonPackage rec {
12   pname = "flask-babelex";
13   version = "0.9.4";
15   src = fetchPypi {
16     inherit version;
17     pname = "Flask-BabelEx";
18     sha256 = "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r";
19   };
21   propagatedBuildInputs = [
22     flask
23     babel
24     speaklater
25     jinja2
26   ];
28   checkInputs = [
29     pytest
30   ];
32   checkPhase = ''
33     # Disabled 3 tests failing due to string representations of dates:
34     # Like "12. April 2010 um 15:46:00 MESZ" != 12. "April 2010 15:46:00 MESZ"
36     pytest tests/tests.py -k "not test_init_app \
37                               and not test_custom_locale_selector \
38                               and not test_basics"
39   '';
41   meta = with lib; {
42     description = "Adds i18n/l10n support to Flask applications";
43     homepage = "https://github.com/mrjoes/flask-babelex";
44     license = licenses.bsd3;
45     maintainers = [ maintainers.costrouc ];
46   };