From 2bbee744183166bf7a7d6925a44527b8c7f33e3b Mon Sep 17 00:00:00 2001 From: sveitser Date: Fri, 7 Oct 2022 10:58:30 +0200 Subject: [PATCH] python3Packages.black: 22.8.0 -> 22.10.0 - Support for python3.6 dropped. - Hatchling used as build backend. - Use `pyproject` format. There is no setup.py. https://github.com/psf/black/releases/tag/22.10.0 --- .../python-modules/black/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index 4ac4f2fcb3c..2dd909a338a 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -3,12 +3,14 @@ , buildPythonPackage , fetchPypi , pythonOlder -, setuptools-scm , pytestCheckHook , aiohttp , aiohttp-cors , click , colorama +, hatch-fancy-pypi-readme +, hatch-vcs +, hatchling , mypy-extensions , pathspec , parameterized @@ -21,16 +23,21 @@ buildPythonPackage rec { pname = "black"; - version = "22.8.0"; + version = "22.10.0"; + format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-eS9+tUC6mhfoZWU4cB0+sa/LE047RbcfILJcd6jbfm4="; + hash = "sha256-9RNYjaWZlD4M3k4yzJh56CXVhyDWVXBi0QmMWtgAgOE="; }; - nativeBuildInputs = [ setuptools-scm ]; + nativeBuildInputs = [ + hatch-fancy-pypi-readme + hatch-vcs + hatchling + ]; # Necessary for the tests to pass on Darwin with sandbox enabled. # Black starts a local server and needs to bind a local address.