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