2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPy27,
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# propagates
|
|
|
|
click,
|
|
|
|
jinja2,
|
|
|
|
shellingham,
|
|
|
|
six,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "click-completion";
|
|
|
|
version = "0.5.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-02-10 20:34:41 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "5bf816b81367e638a190b6e91b50779007d14301b3f9f3145d68e3cade7bce86";
|
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
jinja2
|
|
|
|
shellingham
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "click_completion" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Add or enhance bash, fish, zsh and powershell completion in Click";
|
|
|
|
homepage = "https://github.com/click-contrib/click-completion";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mbode ];
|
|
|
|
};
|
|
|
|
}
|