Files
nixpkgs/pkgs/development/python-modules/click-option-group/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

48 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
hatchling,
hatch-vcs,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "click-option-group";
version = "0.5.9";
pyproject = true;
src = fetchFromGitHub {
owner = "click-contrib";
repo = "click-option-group";
tag = "v${version}";
hash = "sha256-ASzX80aZB3SQqz8AgDTJTE1jgY+MgA0P5yTW9m6+Ovk=";
};
build-system = [
hatchling
hatch-vcs
];
dependencies = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "click_option_group" ];
meta = {
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/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ hexa ];
};
}