From 3607a737006fe222c1eff66ae78bbc1ea5993fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 13 Mar 2023 09:28:38 +0100 Subject: [PATCH] python3Packages.babel: revert test fixes for now This reverts commits 86fc053269358 and cebf6aa8fd0d. The intention is to delay the huge rebuild, as we do have binaries for the non-reproducible builds already. --- .../python-modules/babel/default.nix | 36 ++----------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/pkgs/development/python-modules/babel/default.nix b/pkgs/development/python-modules/babel/default.nix index 1393a7084e1f..09fb69a7658e 100644 --- a/pkgs/development/python-modules/babel/default.nix +++ b/pkgs/development/python-modules/babel/default.nix @@ -1,20 +1,8 @@ -{ lib -, buildPythonPackage -, fetchPypi -, pythonAtLeast -, pythonOlder - -# tests -, freezegun -, pytestCheckHook -, pytz -}: +{ stdenv, lib, buildPythonPackage, fetchPypi, pythonOlder, pytz, pytestCheckHook, freezegun }: buildPythonPackage rec { pname = "babel"; version = "2.12.1"; - format = "setuptools"; - disabled = pythonOlder "3.7"; src = fetchPypi { @@ -23,30 +11,12 @@ buildPythonPackage rec { hash = "sha256-zC2ZmZzQHURCCuclohyeNxGzqtx5dtYUf2IthYGWNFU="; }; - propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ - pytz - ]; + propagatedBuildInputs = lib.optional (pythonOlder "3.9") pytz; - # including backports.zoneinfo for python<3.9 yields infinite recursion - doCheck = pythonAtLeast "3.9"; - - nativeCheckInputs = [ - # via setup.py - freezegun - pytestCheckHook - # via tox.ini - pytz - ]; - - disabledTests = [ - # fails on days switching from and to daylight saving time in EST - # https://github.com/python-babel/babel/issues/988 - "test_format_time" - ]; + nativeCheckInputs = [ pytestCheckHook freezegun ]; meta = with lib; { homepage = "https://babel.pocoo.org/"; - changelog = "https://github.com/python-babel/babel/releases/tag/v${version}"; description = "Collection of internationalizing tools"; license = licenses.bsd3; maintainers = with maintainers; [ SuperSandro2000 ];