diff options
author | Max Hausch <cheriimoya@googlemail.com> | 2021-03-08 12:42:53 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2021-04-24 02:12:33 +0200 |
commit | 4a931be54327207e1b4a2ccc27c55f184b83255f (patch) | |
tree | 7adce05a86032aee293dda5ac9e911752827029a /pkgs/development/python-modules/Babel/default.nix | |
parent | a78ed5cbdd5427c30ca02a47ce6cccc9b7d17de4 (diff) | |
download | nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar.gz nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar.bz2 nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar.lz nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar.xz nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.tar.zst nixpkgs-4a931be54327207e1b4a2ccc27c55f184b83255f.zip |
python3Packages.Babel: 2.7.0 -> 2.9.0
Update babel as the current release is over a year old and some packages need >=2.8.0. Also migrate to pytestCheckHook.
Diffstat (limited to 'pkgs/development/python-modules/Babel/default.nix')
-rw-r--r-- | pkgs/development/python-modules/Babel/default.nix | 29 |
1 files changed, 4 insertions, 25 deletions
diff --git a/pkgs/development/python-modules/Babel/default.nix b/pkgs/development/python-modules/Babel/default.nix index 1074d2eef48..183478396eb 100644 --- a/pkgs/development/python-modules/Babel/default.nix +++ b/pkgs/development/python-modules/Babel/default.nix @@ -1,38 +1,17 @@ -{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, pytz, pytest, freezegun, glibcLocales }: +{ stdenv, lib, buildPythonPackage, fetchPypi, pytz, pytestCheckHook, freezegun }: buildPythonPackage rec { pname = "Babel"; - version = "2.7.0"; + version = "2.9.0"; src = fetchPypi { inherit pname version; - sha256 = "e86135ae101e31e2c8ec20a4e0c5220f4eed12487d5cf3f78be7e98d3a57fc28"; + sha256 = "018yg7g2pa6vjixx1nx41cfispgfi0azzp0a1chlycbj8jsil0ys"; }; - patches = [ - # The following 2 patches fix the test suite failing on nix < 2.3 with - # Python < 3 because those nix versions do not run in a pseudoterminal, - # which makes Python 2 not set the default encoding to UTF-8, and the - # Babel code crashes when printing a warning in that case. - # See #75676 and https://github.com/python-babel/babel/pull/691. - # It is important to fix this because otherwise Babel is not buildable - # with older nix versions (e.g. on machines used as --builders). - # TODO: Remove at release > 2.8.0. - (fetchpatch { - name = "Babel-Introduce-invariant-that-invalid_pofile-takes-unicode-line.patch"; - url = "https://github.com/python-babel/babel/commit/f4f6653e6aa053724d2c6dc0ee71dcb928013352.patch"; - sha256 = "1kyknwn9blspcf9yxmgdiaxdii1dnkblyhcflqwhxyl1mss1dxv5"; - }) - (fetchpatch { - name = "Babel-Fix-unicode-printing-error-on-Python-2-without-TTY.patch"; - url = "https://github.com/python-babel/babel/commit/da7f31143847659b6b74d802618b03438aceb350.patch"; - sha256 = "09yny8614knr8ngrrddmqzkxk70am135rccv2ncc6dji4xbqbfln"; - }) - ]; - propagatedBuildInputs = [ pytz ]; - checkInputs = [ pytest freezegun ]; + checkInputs = [ pytestCheckHook freezegun ]; doCheck = !stdenv.isDarwin; |