Files
nixpkgs/pkgs/development/python-modules/cli-helpers/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

69 lines
1.7 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
configobj,
mock,
pytestCheckHook,
pygments,
tabulate,
}:
buildPythonPackage rec {
pname = "cli-helpers";
version = "2.7.0";
format = "setuptools";
disabled = pythonOlder "3.6";
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 ];
};
}