Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPyPy,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# tests
|
|
freezegun,
|
|
glibcLocales,
|
|
pytestCheckHook,
|
|
pytz,
|
|
tzdata,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "babel";
|
|
version = "2.17.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-DFTP+xn2kM3MUqO1C8v3HgeoCNHIDVSfJFm50s8K+50=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
glibcLocales
|
|
pytestCheckHook
|
|
# https://github.com/python-babel/babel/issues/988#issuecomment-1521765563
|
|
pytz
|
|
]
|
|
++ lib.optionals isPyPy [ tzdata ];
|
|
|
|
disabledTests = [
|
|
# fails on days switching from and to daylight saving time in EST
|
|
# https://github.com/python-babel/babel/issues/988
|
|
"test_format_time"
|
|
];
|
|
|
|
pythonImportsCheck = [ "babel" ];
|
|
|
|
meta = {
|
|
description = "Collection of internationalizing tools";
|
|
homepage = "https://babel.pocoo.org/";
|
|
changelog = "https://github.com/python-babel/babel/releases/tag/v${version}";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ getchoo ];
|
|
mainProgram = "pybabel";
|
|
};
|
|
}
|