Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 47 lines 1.0 kB view raw
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.3"; 14 15 src = fetchPypi { 16 inherit version; 17 pname = "Flask-BabelEx"; 18 sha256 = "cf79cdedb5ce860166120136b0e059e9d97b8df07a3bc2411f6243de04b754b4"; 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}