depot/third_party/nixpkgs/pkgs/development/python-modules/cli-helpers/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

67 lines
1.7 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, configobj
, mock
, pytestCheckHook
, pygments
, tabulate
, terminaltables
, wcwidth
}:
buildPythonPackage rec {
pname = "cli-helpers";
version = "2.3.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "cli_helpers";
inherit version;
hash = "sha256-5xdNADorWP0+Mac/u8RdWqUT3mLL1C1Df3i5ZYvV+Wc=";
};
propagatedBuildInputs = [
configobj
tabulate
] ++ tabulate.optional-dependencies.widechars;
passthru.optional-dependencies = {
styles = [ pygments ];
};
nativeCheckInputs = [
pytestCheckHook
mock
] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
meta = with lib; {
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 = licenses.bsd3 ;
maintainers = [ maintainers.kalbasit ];
};
}