python3Packages.click-shell: init at 2.1
This commit is contained in:
parent
7b5702cb21
commit
2c2776b188
49
pkgs/development/python-modules/click-shell/default.nix
Normal file
49
pkgs/development/python-modules/click-shell/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user