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