From 6122e17a2dd284350dca254c5dc28ab726d19098 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 23 Aug 2023 08:53:01 +0200 Subject: [PATCH] python310Packages.click-help-colors: add format - disable on unsupported Python releases - equalize content --- .../click-help-colors/default.nix | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/click-help-colors/default.nix b/pkgs/development/python-modules/click-help-colors/default.nix index a093cfaf9dec..9a2983aabe8f 100644 --- a/pkgs/development/python-modules/click-help-colors/default.nix +++ b/pkgs/development/python-modules/click-help-colors/default.nix @@ -1,21 +1,34 @@ -{ lib, fetchPypi, buildPythonPackage -, click, pytestCheckHook +{ lib +, fetchPypi +, buildPythonPackage +, click +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "click-help-colors"; version = "0.9.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-dWJF5ULSkia7O8BWv6WIhvISuiuC9OjPX8iEF2rJbXI="; + hash = "sha256-dWJF5ULSkia7O8BWv6WIhvISuiuC9OjPX8iEF2rJbXI="; }; - propagatedBuildInputs = [ click ]; + propagatedBuildInputs = [ + click + ]; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "click_help_colors" ]; + pythonImportsCheck = [ + "click_help_colors" + ]; meta = with lib; { description = "Colorization of help messages in Click";