mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
48ebbe0161
and remove references to python <= 3.9
55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
isPyPy,
|
|
pythonOlder,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# tests
|
|
freezegun,
|
|
pytestCheckHook,
|
|
pytz,
|
|
tzdata,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "babel";
|
|
version = "2.15.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-ja8OJl0FdovGx6MUzxMh6aEjr8MozGNcGGIqLzCgRBM=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [
|
|
freezegun
|
|
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";
|
|
};
|
|
}
|