1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 configobj, 7 mock, 8 pytestCheckHook, 9 pygments, 10 tabulate, 11}: 12 13buildPythonPackage rec { 14 pname = "cli-helpers"; 15 version = "2.4.0"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 pname = "cli_helpers"; 22 inherit version; 23 hash = "sha256-VZA7cFohKkc3Mdsg+ib1hlXjVAeLmcsTyZ7AaUAoek0="; 24 }; 25 26 propagatedBuildInputs = [ 27 configobj 28 tabulate 29 ] ++ tabulate.optional-dependencies.widechars; 30 31 optional-dependencies = { 32 styles = [ pygments ]; 33 }; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 mock 38 ] ++ lib.flatten (builtins.attrValues optional-dependencies); 39 40 meta = with lib; { 41 description = "Python helpers for common CLI tasks"; 42 longDescription = '' 43 CLI Helpers is a Python package that makes it easy to perform common 44 tasks when building command-line apps. It's a helper library for 45 command-line interfaces. 46 47 Libraries like Click and Python Prompt Toolkit are amazing tools that 48 help you create quality apps. CLI Helpers complements these libraries by 49 wrapping up common tasks in simple interfaces. 50 51 CLI Helpers is not focused on your app's design pattern or framework -- 52 you can use it on its own or in combination with other libraries. It's 53 lightweight and easy to extend. 54 55 What's included in CLI Helpers? 56 57 - Prettyprinting of tabular data with custom pre-processing 58 - [in progress] config file reading/writing 59 60 Read the documentation at http://cli-helpers.rtfd.io 61 ''; 62 homepage = "https://cli-helpers.readthedocs.io/en/stable/"; 63 license = licenses.bsd3; 64 maintainers = [ maintainers.kalbasit ]; 65 }; 66}