about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-08-23 08:53:01 +0200
committerGitHub <noreply@github.com>2023-08-23 08:53:01 +0200
commit6122e17a2dd284350dca254c5dc28ab726d19098 (patch)
tree15f15bc44fa9f38903abd1c5c8f750579205d73a /pkgs
parenta113e0de2973bbd4040f191218870a2b9dd1b355 (diff)
python310Packages.click-help-colors: add format
- disable on unsupported Python releases
- equalize content
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/click-help-colors/default.nix25
1 files 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 a093cfaf9dece..9a2983aabe8f0 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";