mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
python3Packages.click-option-group: init at 0.5.3
This commit is contained in:
parent
1e5e12d735
commit
c06b1086c0
2 changed files with 49 additions and 0 deletions
|
@ -0,0 +1,47 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, click
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "click-option-group";
|
||||
version = "0.5.3";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "click-contrib";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1w0692s8fabncpggpwl2d4dfqjjlmcia271rrb8hcz0r6nvw98ak";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"click_option_group"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Option groups missing in Click";
|
||||
longDescription = ''
|
||||
Option groups are convenient mechanism for logical structuring
|
||||
CLI, also it allows you to set the specific behavior and set the
|
||||
relationship among grouped options (mutually exclusive options
|
||||
for example). Moreover, argparse stdlib package contains this
|
||||
functionality out of the box.
|
||||
'';
|
||||
homepage = "https://github.com/click-contrib/click-option-group";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
|
@ -1417,6 +1417,8 @@ in {
|
|||
|
||||
click-log = callPackage ../development/python-modules/click-log { };
|
||||
|
||||
click-option-group = callPackage ../development/python-modules/click-option-group { };
|
||||
|
||||
click-plugins = callPackage ../development/python-modules/click-plugins { };
|
||||
|
||||
click-spinner = callPackage ../development/python-modules/click-spinner { };
|
||||
|
|
Loading…
Reference in a new issue