From 23231e2cf8a587b557cedbc5e1a08ebaa1d27095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 27 Jun 2023 01:04:57 +0200 Subject: [PATCH] pypy3Packages.babel: fix build babel> :1007: babel> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ babel> babel> name = 'tzdata', import_ = babel> babel> > ??? babel> E ModuleNotFoundError: No module named 'tzdata' babel> babel> :984: ModuleNotFoundError babel> babel> During handling of the above exception, another exception occurred: --- pkgs/development/python-modules/babel/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/babel/default.nix b/pkgs/development/python-modules/babel/default.nix index 1393a7084e1f..e4590daa631f 100644 --- a/pkgs/development/python-modules/babel/default.nix +++ b/pkgs/development/python-modules/babel/default.nix @@ -1,8 +1,10 @@ { lib , buildPythonPackage , fetchPypi +, isPyPy , pythonAtLeast , pythonOlder +, tzdata # tests , freezegun @@ -31,11 +33,12 @@ buildPythonPackage rec { doCheck = pythonAtLeast "3.9"; nativeCheckInputs = [ - # via setup.py freezegun pytestCheckHook - # via tox.ini + # https://github.com/python-babel/babel/issues/988#issuecomment-1521765563 pytz + ] ++ lib.optionals isPyPy [ + tzdata ]; disabledTests = [