mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-18 22:51:21 +00:00
python3Packages.click-help-colors: migrate to pyproject (#542890)
This commit is contained in:
@@ -2,21 +2,27 @@
|
||||
lib,
|
||||
fetchPypi,
|
||||
buildPythonPackage,
|
||||
setuptools,
|
||||
click,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "click-help-colors";
|
||||
version = "0.9.4";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
pname = "click-help-colors";
|
||||
inherit (finalAttrs) version;
|
||||
hash = "sha256-9Mq+Us9VApm4iI9PLuTF81msJ+M7z+TWHbR3haXMk2w=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ click ];
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ click ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
@@ -25,8 +31,8 @@ buildPythonPackage rec {
|
||||
meta = {
|
||||
description = "Colorization of help messages in Click";
|
||||
homepage = "https://github.com/click-contrib/click-help-colors";
|
||||
changelog = "https://github.com/click-contrib/click-help-colors/blob/${version}/CHANGES.rst";
|
||||
changelog = "https://github.com/click-contrib/click-help-colors/blob/${finalAttrs.version}/CHANGES.rst";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user