Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 60 lines
Nix
at llvm-cleanup
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, buildPythonPackage, fetchPypi, isPyPy, pythonAtLeast, pythonOlder,
# build-system setuptools,
# tests freezegun, pytestCheckHook, pytz, tzdata,}:
buildPythonPackage rec { pname = "babel"; version = "2.14.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi { pname = "Babel"; inherit version; hash = "sha256-aRmGfbA2OYuiHrXHoPayirjLw656c6ROvjSudKTn02M="; };
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = lib.optionals (pythonOlder "3.9") [ pytz ];
# including backports.zoneinfo for python<3.9 yields infinite recursion doCheck = pythonAtLeast "3.9";
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" ];
meta = with lib; { homepage = "https://babel.pocoo.org/"; changelog = "https://github.com/python-babel/babel/releases/tag/v${version}"; description = "Collection of internationalizing tools"; mainProgram = "pybabel"; license = licenses.bsd3; maintainers = with maintainers; [ ]; };}