python3Packages.click-shell: init at 2.1

This commit is contained in:
binsky 2022-10-23 14:17:34 +02:00
parent 7b5702cb21
commit 2c2776b188
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, click
, pytestCheckHook
, pytest-click
}:
buildPythonPackage rec {
pname = "click-shell";
version = "2.1";
format = "setuptools";
# PyPi release is missing tests
src = fetchFromGitHub {
owner = "clarkperkins";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-4QpQzg0yFuOFymGiTI+A8o6LyX78iTJMqr0ernYbilI=";
};
propagatedBuildInputs = [
click
];
checkInputs = [
pytest-click
pytestCheckHook
];
pythonImportsCheck = [
"click_shell"
];
preCheck = "export HOME=$(mktemp -d)";
meta = with lib; {
description = "An extension to click that easily turns your click app into a shell utility";
longDescription = ''
This is an extension to click that easily turns your click app into a
shell utility. It is built on top of the built in python cmd module,
with modifications to make it work with click. It adds a 'shell' mode
with command completion to any click app.
'';
homepage = "https://github.com/clarkperkins/click-shell";
license = licenses.bsd3;
maintainers = with maintainers; [ binsky ];
};
}

View File

@ -1881,6 +1881,8 @@ in {
click-plugins = callPackage ../development/python-modules/click-plugins { };
click-shell = callPackage ../development/python-modules/click-shell { };
click-spinner = callPackage ../development/python-modules/click-spinner { };
click-repl = callPackage ../development/python-modules/click-repl { };