Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: black 25.1.0 -> 26.5.1 https://github.com/psf/black/releases attrpath: black Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/y0k5rm3v5smpz63b8zyfzqwhxy3yzx2y-packages.json.drv building '/nix/store/y0k5rm3v5smpz63b8zyfzqwhxy3yzx2y-packages.json.drv'... Going to be running update for following packages: - black-25.1.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - black-25.1.0: UPDATING ... - black-25.1.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 ea56257d981f..9c04efdc41a7 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -23,12 +23,12 @@ buildPythonPackage rec { pname = "black"; - version = "25.1.0"; + version = "26.5.1"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-M0ltXNEiKtczkTUrSujaFSU8Xeibk6gLPiyNmhnsJmY="; + hash = "sha256-3TIfZoBTlhgkvMG+HMHfdIstfk+igIawgzHld7AQCnM="; }; patches = [ No auto update branch exists Old version 25.1.0" not present in staging derivation file with contents: { stdenv, lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, aiohttp, click, colorama, hatch-fancy-pypi-readme, hatch-vcs, hatchling, ipython, mypy-extensions, packaging, pathspec, parameterized, platformdirs, pytokens, tokenize-rt, uvloop, }: buildPythonPackage (finalAttrs: { pname = "black"; version = "26.5.1"; pyproject = true; src = fetchFromGitHub { owner = "psf"; repo = "black"; tag = finalAttrs.version; hash = "sha256-xALg9ta0U2V6i/b7VYiPKu0oNnHfg9T+XuK3CvqJmjs="; }; build-system = [ hatch-fancy-pypi-readme hatch-vcs hatchling ]; dependencies = [ click mypy-extensions packaging pathspec platformdirs pytokens ]; 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.concatAttrValues finalAttrs.passthru.optional-dependencies; pytestFlags = [ "-Wignore::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.hostPlatform.isDarwin '' # Work around https://github.com/psf/black/issues/2105 export TMPDIR="/tmp" ''; disabledTests = [ # requires network access "test_gen_check_output" ] ++ lib.optionals stdenv.hostPlatform.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.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); meta = { description = "Uncompromising Python code formatter"; homepage = "https://github.com/psf/black"; changelog = "https://github.com/psf/black/blob/${finalAttrs.src.tag}/CHANGES.md"; license = lib.licenses.mit; mainProgram = "black"; maintainers = with lib.maintainers; [ sveitser autophagy ]; }; })