1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, click 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "click-option-group"; 11 version = "0.5.3"; 12 format = "setuptools"; 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "click-contrib"; 17 repo = pname; 18 rev = "v${version}"; 19 sha256 = "1w0692s8fabncpggpwl2d4dfqjjlmcia271rrb8hcz0r6nvw98ak"; 20 }; 21 22 propagatedBuildInputs = [ 23 click 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ 31 "click_option_group" 32 ]; 33 34 meta = with lib; { 35 description = "Option groups missing in Click"; 36 longDescription = '' 37 Option groups are convenient mechanism for logical structuring 38 CLI, also it allows you to set the specific behavior and set the 39 relationship among grouped options (mutually exclusive options 40 for example). Moreover, argparse stdlib package contains this 41 functionality out of the box. 42 ''; 43 homepage = "https://github.com/click-contrib/click-option-group"; 44 license = licenses.bsd3; 45 maintainers = with maintainers; [ hexa ]; 46 }; 47}