1{ lib 2, buildPythonPackage 3, fetchPypi 4, flask 5, babel 6, speaklater 7, jinja2 8, pytest 9}: 10 11buildPythonPackage rec { 12 pname = "flask-babelex"; 13 version = "0.9.4"; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "Flask-BabelEx"; 18 sha256 = "09yfr8hlwvpgvq8kp1y7qbnnl0q28hi0348bv199ssiqx779r99r"; 19 }; 20 21 propagatedBuildInputs = [ 22 flask 23 babel 24 speaklater 25 jinja2 26 ]; 27 28 checkInputs = [ 29 pytest 30 ]; 31 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" 35 36 pytest tests/tests.py -k "not test_init_app \ 37 and not test_custom_locale_selector \ 38 and not test_basics" 39 ''; 40 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 }; 47}