Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, pythonOlder 6 7# tests 8, freezegun 9, pytestCheckHook 10, pytz 11}: 12 13buildPythonPackage rec { 14 pname = "babel"; 15 version = "2.12.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 pname = "Babel"; 22 inherit version; 23 hash = "sha256-zC2ZmZzQHURCCuclohyeNxGzqtx5dtYUf2IthYGWNFU="; 24 }; 25 26 propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ 27 pytz 28 ]; 29 30 # including backports.zoneinfo for python<3.9 yields infinite recursion 31 doCheck = pythonAtLeast "3.9"; 32 33 nativeCheckInputs = [ 34 # via setup.py 35 freezegun 36 pytestCheckHook 37 # via tox.ini 38 pytz 39 ]; 40 41 disabledTests = [ 42 # fails on days switching from and to daylight saving time in EST 43 # https://github.com/python-babel/babel/issues/988 44 "test_format_time" 45 ]; 46 47 meta = with lib; { 48 homepage = "https://babel.pocoo.org/"; 49 changelog = "https://github.com/python-babel/babel/releases/tag/v${version}"; 50 description = "Collection of internationalizing tools"; 51 license = licenses.bsd3; 52 maintainers = with maintainers; [ SuperSandro2000 ]; 53 }; 54}