python310Packages.click-help-colors: add format

- disable on unsupported Python releases
- equalize content
This commit is contained in:
Fabian Affolter 2023-08-23 08:53:01 +02:00 committed by GitHub
parent a113e0de29
commit 6122e17a2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";