mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
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 ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-click
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "click_shell" ];
|
|
|
|
preCheck = "export HOME=$(mktemp -d)";
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
};
|
|
}
|