black 0 -> 1 attrpath: black Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/4idw55ikfmfjadj3awwq55p3fk05c2g2-packages.json.drv building '/nix/store/4idw55ikfmfjadj3awwq55p3fk05c2g2-packages.json.drv'... Going to be running update for following packages: - black-23.11.0 Press Enter key to continue... Running update for: - black-23.11.0: UPDATING ... - black-23.11.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 73ce7f8d30fd..edc13d3457dd 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -24,14 +24,14 @@ buildPythonPackage rec { pname = "black"; - version = "23.11.0"; + version = "24.2.0"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-TGiFWCX/Qy0ZcimEb5cbxNZmbOkEkuWwIBO8rKTZqwU="; + hash = "sha256-vOTyXCfDQ15NrOSBW8sgCLh+Fn479O5HzNxc6QbrSJQ="; }; nativeBuildInputs = [ No auto update branch exists Old version 23.11.0" not present in staging derivation file with contents: { stdenv , lib , buildPythonPackage , fetchPypi , pythonOlder , pytestCheckHook , aiohttp , click , colorama , hatch-fancy-pypi-readme , hatch-vcs , hatchling , ipython , mypy-extensions , packaging , pathspec , parameterized , platformdirs , tokenize-rt , tomli , typing-extensions , uvloop }: buildPythonPackage rec { pname = "black"; version = "24.1.1"; format = "pyproject"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-SLV2Dcv+XPl/1PuiOUZoHzqBUUxquKRbUNpnrI+8bHs"; }; nativeBuildInputs = [ hatch-fancy-pypi-readme hatch-vcs hatchling ]; propagatedBuildInputs = [ click mypy-extensions packaging pathspec platformdirs ] ++ lib.optionals (pythonOlder "3.11") [ tomli typing-extensions ]; passthru.optional-dependencies = { colorama = [ colorama ]; d = [ aiohttp ]; uvloop = [ uvloop ]; jupyter = [ ipython tokenize-rt ]; }; # Necessary for the tests to pass on Darwin with sandbox enabled. # Black starts a local server and needs to bind a local address. __darwinAllowLocalNetworking = true; nativeCheckInputs = [ pytestCheckHook parameterized ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies); pytestFlagsArray = [ "-W" "ignore::DeprecationWarning" ]; preCheck = '' export PATH="$PATH:$out/bin" # The top directory /build matches black's DEFAULT_EXCLUDE regex. # Make /build the project root for black tests to avoid excluding files. touch ../.git '' + lib.optionalString stdenv.isDarwin '' # Work around https://github.com/psf/black/issues/2105 export TMPDIR="/tmp" ''; disabledTests = [ # requires network access "test_gen_check_output" ] ++ lib.optionals stdenv.isDarwin [ # fails on darwin "test_expression_diff" # Fail on Hydra, see https://github.com/NixOS/nixpkgs/pull/130785 "test_bpo_2142_workaround" "test_skip_magic_trailing_comma" ]; # multiple tests exceed max open files on hydra builders doCheck = !(stdenv.isLinux && stdenv.isAarch64); meta = with lib; { description = "The uncompromising Python code formatter"; homepage = "https://github.com/psf/black"; changelog = "https://github.com/psf/black/blob/${version}/CHANGES.md"; license = licenses.mit; mainProgram = "black"; maintainers = with maintainers; [ sveitser autophagy ]; }; }