depot/third_party/nixpkgs/pkgs/development/python-modules/click-option-group/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

47 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, click
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "click-option-group";
version = "0.5.6";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "click-contrib";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-uR5rIZPPT6pRk/jJEy2rZciOXrHWVWN6BfGroQ3znas=";
};
propagatedBuildInputs = [
click
];
nativeCheckInputs = [
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 ];
};
}