Files
nixpkgs/pkgs/development/python-modules/cli-helpers/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

66 lines
1.6 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
configobj,
mock,
pytestCheckHook,
pygments,
tabulate,
}:
buildPythonPackage rec {
pname = "cli-helpers";
version = "2.7.0";
format = "setuptools";
src = fetchPypi {
pname = "cli_helpers";
inherit version;
hash = "sha256-YtEXENvrwvxGAAPeEhVogyXYY2hZBW1oizhBm9QEi8A=";
};
propagatedBuildInputs = [
configobj
tabulate
]
++ tabulate.optional-dependencies.widechars;
optional-dependencies = {
styles = [ pygments ];
};
nativeCheckInputs = [
pytestCheckHook
mock
]
++ lib.concatAttrValues optional-dependencies;
meta = {
description = "Python helpers for common CLI tasks";
longDescription = ''
CLI Helpers is a Python package that makes it easy to perform common
tasks when building command-line apps. It's a helper library for
command-line interfaces.
Libraries like Click and Python Prompt Toolkit are amazing tools that
help you create quality apps. CLI Helpers complements these libraries by
wrapping up common tasks in simple interfaces.
CLI Helpers is not focused on your app's design pattern or framework --
you can use it on its own or in combination with other libraries. It's
lightweight and easy to extend.
What's included in CLI Helpers?
- Prettyprinting of tabular data with custom pre-processing
- [in progress] config file reading/writing
Read the documentation at http://cli-helpers.rtfd.io
'';
homepage = "https://cli-helpers.readthedocs.io/en/stable/";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.kalbasit ];
};
}